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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.o: E = None
        self.s: E = None
        self.z: E = None
        self.txt = txt

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

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

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

n = A("n")
c = B("c")
h = C("h")
a = D("a")
d = E("d")
l = A("l")
m = C("m")
j = B("j")

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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.o: E = None
        self.s: E = None
        self.z: E = None
        self.txt = txt

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

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

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

n = A("n")
c = B("c")
h = C("h")
a = D("a")
d = E("d")
l = A("l")
m = C("m")
j = B("j")

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