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

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.x: B = None
        self.r: D = None
        self.w: C = None
        self.v: C = None
        self.txt = txt

l = A("l")
c = B("c")
j = C("j")
h = D("h")
f = E("f")
e = C("e")

l.t = c
l.o = f
l.z = e
c.w = h
c.r = e
c.t = f
j.s = f
j.t = f
j.u = e
j.z = e
h.u = c
h.w = c
f.o = h
f.r = h
f.x = c
f.w = e
f.v = e
e.s = f
e.t = f
e.u = j
e.z = j
assert j.z.s.x.r.z.u.txt == "
class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: E = None
        self.z: C = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.x: B = None
        self.r: D = None
        self.w: C = None
        self.v: C = None
        self.txt = txt

l = A("l")
c = B("c")
j = C("j")
h = D("h")
f = E("f")
e = C("e")

l.t = c
l.o = f
l.z = e
c.w = h
c.r = e
c.t = f
j.s = f
j.t = f
j.u = e
j.z = e
h.u = c
h.w = c
f.o = h
f.r = h
f.x = c
f.w = e
f.v = e
e.s = f
e.t = f
e.u = j
e.z = j
assert j.z.s.x.r.z.u.txt == "e"