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

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

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: B = None
        self.u: B = None
        self.x: E = None
        self.q: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: B = None
        self.u: B = None
        self.s: E = None
        self.z: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.q: C = None
        self.txt = txt

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

n.y = k
n.v = d
n.u = l
i.u = m
i.s = m
i.q = l
i.o = d
i.z = e
l.s = i
l.u = i
l.z = m
l.q = m
l.x = k
e.o = c
e.v = m
e.u = i
e.s = a
e.z = a
k.x = m
k.q = l
d.s = i
d.z = i
d.q = i
d.u = m
d.x = k
m.u = i
m.s = i
m.q = l
m.o = l
m.z = e
h.y = k
h.v = l
h.u = d
a.x = i
a.q = d
c.o = e
c.v = m
c.u = i
c.s = k
c.z = k
assert m.z.s.x.q.x.q.q.q.txt == "
class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.v: C = None
        self.u: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: B = None
        self.u: B = None
        self.x: E = None
        self.q: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: B = None
        self.u: B = None
        self.s: E = None
        self.z: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.q: C = None
        self.txt = txt

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

n.y = k
n.v = d
n.u = l
i.u = m
i.s = m
i.q = l
i.o = d
i.z = e
l.s = i
l.u = i
l.z = m
l.q = m
l.x = k
e.o = c
e.v = m
e.u = i
e.s = a
e.z = a
k.x = m
k.q = l
d.s = i
d.z = i
d.q = i
d.u = m
d.x = k
m.u = i
m.s = i
m.q = l
m.o = l
m.z = e
h.y = k
h.v = l
h.u = d
a.x = i
a.q = d
c.o = e
c.v = m
c.u = i
c.s = k
c.z = k
assert m.z.s.x.q.x.q.q.q.txt == "l"