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

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

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

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

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

i = A("i")
l = B("l")
m = C("m")
j = D("j")
c = E("c")
a = E("a")
k = D("k")

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

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

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

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

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

i = A("i")
l = B("l")
m = C("m")
j = D("j")
c = E("c")
a = E("a")
k = D("k")

i.u = k
l.w = m
l.q = a
l.z = i
l.s = c
m.x = k
m.t = k
m.q = i
m.w = l
m.r = l
j.s = k
j.w = k
j.y = l
j.t = i
j.q = m
c.r = j
c.y = l
a.r = k
a.y = l
k.s = j
k.w = j
k.y = l
k.t = i
k.q = m
assert m.q.u.t.txt == "i"