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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: E = None
        self.w: B = None
        self.v: A = None
        self.z: A = None
        self.t: D = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: E = None
        self.w: B = None
        self.v: A = None
        self.z: A = None
        self.t: D = None
        self.txt = txt

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

d.z = b
d.x = b
d.t = e
d.o = j
d.p = j
d.y = h
e.w = d
e.z = d
e.p = d
e.t = f
e.y = l
e.u = b
a.y = d
a.p = b
a.z = m
l.u = n
h.t = l
h.q = l
h.z = a
h.x = e
h.p = f
h.o = f
f.o = d
f.v = d
f.z = d
f.y = j
f.w = e
f.t = l
m.y = d
m.p = j
m.z = a
n.w = d
n.z = d
n.p = d
n.t = f
n.y = l
n.u = h
j.t = l
j.q = l
j.z = m
j.x = e
j.p = f
j.o = f
b.t = l
b.q = l
b.z = a
b.x = n
b.p = f
b.o = f
assert m.z.p.q.u.u.q.u.txt == "n"