class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: F = None
        self.v: I = None
        self.y: E = None
        self.z: B = None
        self.q: H = None
        self.r: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.q: G = None
        self.x: D = None
        self.o: D = None
        self.v: A = None
        self.p: A = None
        self.r: C = None
        self.y: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: F = None
        self.p: A = None
        self.x: F = None
        self.v: I = None
        self.u: J = None
        self.o: F = None
        self.s: E = None
        self.z: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: A = None
        self.y: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.u: E = None
        self.q: A = None
        self.p: B = None
        self.r: G = None
        self.o: I = None
        self.z: B = None
        self.x: C = None
        self.t: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.u: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: A = None
        self.z: F = None
        self.txt = txt

i = A("i")
a = B("a")
m = C("m")
f = D("f")
h = E("h")
j = F("j")
l = G("l")
b = H("b")
d = I("d")
c = J("c")

i.w = m
i.o = j
i.v = d
i.y = h
i.r = h
i.z = a
i.q = b
a.u = j
a.q = l
a.y = l
a.x = f
a.o = f
a.v = i
a.p = i
a.r = m
m.r = j
m.t = j
m.x = j
m.o = j
m.p = i
m.v = d
m.u = c
m.z = c
m.s = h
f.o = a
h.w = b
h.z = i
h.y = d
j.s = b
j.u = h
j.t = h
j.q = i
j.p = a
j.z = a
j.r = l
j.o = d
j.x = m
l.x = m
l.w = h
b.o = j
b.u = a
d.o = i
c.x = i
c.z = j
assert j.x.p.z.v.v.o.txt == "
class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: F = None
        self.v: I = None
        self.y: E = None
        self.z: B = None
        self.q: H = None
        self.r: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.q: G = None
        self.x: D = None
        self.o: D = None
        self.v: A = None
        self.p: A = None
        self.r: C = None
        self.y: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: F = None
        self.p: A = None
        self.x: F = None
        self.v: I = None
        self.u: J = None
        self.o: F = None
        self.s: E = None
        self.z: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: A = None
        self.y: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.u: E = None
        self.q: A = None
        self.p: B = None
        self.r: G = None
        self.o: I = None
        self.z: B = None
        self.x: C = None
        self.t: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.u: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: A = None
        self.z: F = None
        self.txt = txt

i = A("i")
a = B("a")
m = C("m")
f = D("f")
h = E("h")
j = F("j")
l = G("l")
b = H("b")
d = I("d")
c = J("c")

i.w = m
i.o = j
i.v = d
i.y = h
i.r = h
i.z = a
i.q = b
a.u = j
a.q = l
a.y = l
a.x = f
a.o = f
a.v = i
a.p = i
a.r = m
m.r = j
m.t = j
m.x = j
m.o = j
m.p = i
m.v = d
m.u = c
m.z = c
m.s = h
f.o = a
h.w = b
h.z = i
h.y = d
j.s = b
j.u = h
j.t = h
j.q = i
j.p = a
j.z = a
j.r = l
j.o = d
j.x = m
l.x = m
l.w = h
b.o = j
b.u = a
d.o = i
c.x = i
c.z = j
assert j.x.p.z.v.v.o.txt == "i"