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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

c = A("c")
l = B("l")
k = C("k")
e = D("e")
j = E("j")
m = E("m")
b = D("b")

c.s = e
l.z = k
l.y = c
l.q = j
k.y = b
k.w = m
k.o = m
k.z = j
k.x = l
e.t = b
e.y = l
e.u = l
e.o = c
j.v = l
m.v = l
b.t = e
b.y = l
b.u = l
b.o = c
assert c.s.y.y.s.t.u.txt == "
class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

c = A("c")
l = B("l")
k = C("k")
e = D("e")
j = E("j")
m = E("m")
b = D("b")

c.s = e
l.z = k
l.y = c
l.q = j
k.y = b
k.w = m
k.o = m
k.z = j
k.x = l
e.t = b
e.y = l
e.u = l
e.o = c
j.v = l
m.v = l
b.t = e
b.y = l
b.u = l
b.o = c
assert c.s.y.y.s.t.u.txt == "l"