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

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

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.q: E = None
        self.v: B = None
        self.x: B = None
        self.z: E = None
        self.txt = txt

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

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

e = A("e")
a = B("a")
c = C("c")
b = D("b")
i = E("i")
g = D("g")
d = A("d")
k = A("k")
f = D("f")

e.t = b
e.x = i
e.o = d
e.u = a
e.q = a
a.y = b
a.z = k
a.u = i
c.r = a
c.v = a
c.x = a
c.q = i
c.z = i
b.s = c
i.v = c
i.y = c
g.s = c
d.t = f
d.x = i
d.o = e
d.u = a
d.q = a
k.t = g
k.x = i
k.o = e
k.u = a
k.q = a
f.s = c
assert k.o.t.s.z.y.z.txt == "
class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: E = None
        self.o: A = None
        self.u: B = None
        self.q: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.q: E = None
        self.v: B = None
        self.x: B = None
        self.z: E = None
        self.txt = txt

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

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

e = A("e")
a = B("a")
c = C("c")
b = D("b")
i = E("i")
g = D("g")
d = A("d")
k = A("k")
f = D("f")

e.t = b
e.x = i
e.o = d
e.u = a
e.q = a
a.y = b
a.z = k
a.u = i
c.r = a
c.v = a
c.x = a
c.q = i
c.z = i
b.s = c
i.v = c
i.y = c
g.s = c
d.t = f
d.x = i
d.o = e
d.u = a
d.q = a
k.t = g
k.x = i
k.o = e
k.u = a
k.q = a
f.s = c
assert k.o.t.s.z.y.z.txt == "i"