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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: C = None
        self.v: A = None
        self.r: D = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: C = None
        self.v: A = None
        self.r: D = None
        self.txt = txt

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

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