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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.o: C = None
        self.p: F = None
        self.r: E = None
        self.t: A = None
        self.z: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: C = None
        self.x: C = None
        self.w: D = None
        self.z: A = None
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: B = None
        self.u: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: A = None
        self.x: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: C = None
        self.u: A = None
        self.z: C = None
        self.p: A = None
        self.txt = txt

a = A("a")
h = B("h")
n = C("n")
e = D("e")
c = E("c")
i = F("i")
j = B("j")
f = E("f")
l = C("l")
b = A("b")

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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.o: C = None
        self.p: F = None
        self.r: E = None
        self.t: A = None
        self.z: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: C = None
        self.x: C = None
        self.w: D = None
        self.z: A = None
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: B = None
        self.u: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: A = None
        self.x: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: C = None
        self.u: A = None
        self.z: C = None
        self.p: A = None
        self.txt = txt

a = A("a")
h = B("h")
n = C("n")
e = D("e")
c = E("c")
i = F("i")
j = B("j")
f = E("f")
l = C("l")
b = A("b")

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