class A:
    def __init__(self, txt: str):
        self.z: D = None
        self.w: D = None
        self.t: A = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.v: E = None
        self.r: C = None
        self.w: A = None
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: B = None
        self.q: A = None
        self.w: A = None
        self.y: C = None
        self.t: D = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.v: E = None
        self.r: C = None
        self.w: A = None
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: B = None
        self.q: A = None
        self.w: A = None
        self.y: C = None
        self.t: D = None
        self.txt = txt

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

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