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

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

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

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

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

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

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

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

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

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

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

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

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