class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.z: B = None
        self.w: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.v: B = None
        self.w: A = None
        self.o: A = None
        self.z: A = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.v: B = None
        self.w: A = None
        self.o: A = None
        self.z: A = None
        self.txt = txt

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

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

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

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