class A:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: A = None
        self.p: A = None
        self.q: D = None
        self.v: D = None
        self.txt = txt

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

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

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

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

e = A("e")
f = B("f")
c = C("c")
a = D("a")
l = E("l")
g = C("g")
k = E("k")
n = A("n")
j = C("j")

e.z = c
e.t = n
e.p = n
e.q = a
e.v = a
f.p = a
c.q = a
c.x = l
c.y = e
c.t = f
a.p = n
a.u = n
a.t = j
a.x = g
l.u = f
l.t = f
l.p = f
l.r = a
g.q = a
g.x = l
g.y = n
g.t = f
k.u = f
k.t = f
k.p = f
k.r = a
n.z = g
n.t = e
n.p = e
n.q = a
n.v = a
j.q = a
j.x = l
j.y = n
j.t = f
assert c.x.p.p.t.txt == "
class A:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: A = None
        self.p: A = None
        self.q: D = None
        self.v: D = None
        self.txt = txt

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

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

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

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

e = A("e")
f = B("f")
c = C("c")
a = D("a")
l = E("l")
g = C("g")
k = E("k")
n = A("n")
j = C("j")

e.z = c
e.t = n
e.p = n
e.q = a
e.v = a
f.p = a
c.q = a
c.x = l
c.y = e
c.t = f
a.p = n
a.u = n
a.t = j
a.x = g
l.u = f
l.t = f
l.p = f
l.r = a
g.q = a
g.x = l
g.y = n
g.t = f
k.u = f
k.t = f
k.p = f
k.r = a
n.z = g
n.t = e
n.p = e
n.q = a
n.v = a
j.q = a
j.x = l
j.y = n
j.t = f
assert c.x.p.p.t.txt == "j"