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

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

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

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

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

e = A("e")
b = B("b")
f = C("f")
l = D("l")
h = E("h")
k = B("k")
a = C("a")

e.s = l
b.w = e
b.v = l
b.r = l
b.x = l
b.z = a
f.w = l
f.o = l
f.x = l
f.v = a
f.u = h
l.x = e
h.z = l
h.v = l
h.r = e
k.w = e
k.v = l
k.r = l
k.x = l
k.z = a
a.w = l
a.o = l
a.x = l
a.v = f
a.u = h
assert e.s.x.s.x.s.txt == "
class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

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

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

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

e = A("e")
b = B("b")
f = C("f")
l = D("l")
h = E("h")
k = B("k")
a = C("a")

e.s = l
b.w = e
b.v = l
b.r = l
b.x = l
b.z = a
f.w = l
f.o = l
f.x = l
f.v = a
f.u = h
l.x = e
h.z = l
h.v = l
h.r = e
k.w = e
k.v = l
k.r = l
k.x = l
k.z = a
a.w = l
a.o = l
a.x = l
a.v = f
a.u = h
assert e.s.x.s.x.s.txt == "l"