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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: B = None
        self.s: F = None
        self.o: E = None
        self.r: A = None
        self.x: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: C = None
        self.q: D = None
        self.v: C = None
        self.z: A = None
        self.p: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: B = None
        self.t: C = None
        self.u: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.q: A = None
        self.txt = txt

m = A("m")
f = B("f")
g = C("g")
a = D("a")
k = E("k")
e = F("e")
i = B("i")
h = E("h")
c = C("c")
j = D("j")

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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: B = None
        self.s: F = None
        self.o: E = None
        self.r: A = None
        self.x: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: C = None
        self.q: D = None
        self.v: C = None
        self.z: A = None
        self.p: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: B = None
        self.t: C = None
        self.u: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.q: A = None
        self.txt = txt

m = A("m")
f = B("f")
g = C("g")
a = D("a")
k = E("k")
e = F("e")
i = B("i")
h = E("h")
c = C("c")
j = D("j")

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