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

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

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

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

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

b = A("b")
j = B("j")
e = C("e")
f = D("f")
m = E("m")
c = A("c")
a = C("a")
n = D("n")

b.x = e
b.z = c
b.w = m
b.v = n
j.y = n
j.r = n
j.s = n
j.p = m
j.o = c
e.q = a
e.w = n
e.t = n
e.y = j
f.u = n
m.z = f
m.u = f
m.r = n
c.x = e
c.z = b
c.w = m
c.v = n
a.q = e
a.w = f
a.y = j
a.t = n
n.u = f
assert a.y.p.z.u.u.u.txt == "
class A:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: A = None
        self.w: E = None
        self.v: D = None
        self.txt = txt

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

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

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

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

b = A("b")
j = B("j")
e = C("e")
f = D("f")
m = E("m")
c = A("c")
a = C("a")
n = D("n")

b.x = e
b.z = c
b.w = m
b.v = n
j.y = n
j.r = n
j.s = n
j.p = m
j.o = c
e.q = a
e.w = n
e.t = n
e.y = j
f.u = n
m.z = f
m.u = f
m.r = n
c.x = e
c.z = b
c.w = m
c.v = n
a.q = e
a.w = f
a.y = j
a.t = n
n.u = f
assert a.y.p.z.u.u.u.txt == "n"