class A:
    def __init__(self, txt: str):
        self.x: C = None
        self.y: F = None
        self.p: E = None
        self.t: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: D = None
        self.p: D = None
        self.q: E = None
        self.v: F = None
        self.y: E = None
        self.x: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.z: C = None
        self.y: E = None
        self.o: B = None
        self.t: C = None
        self.r: E = None
        self.x: A = None
        self.txt = txt

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

j = A("j")
g = B("g")
k = C("k")
f = D("f")
l = E("l")
d = F("d")
c = G("c")
n = C("n")
i = D("i")
e = G("e")

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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: D = None
        self.p: D = None
        self.q: E = None
        self.v: F = None
        self.y: E = None
        self.x: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.z: C = None
        self.y: E = None
        self.o: B = None
        self.t: C = None
        self.r: E = None
        self.x: A = None
        self.txt = txt

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

j = A("j")
g = B("g")
k = C("k")
f = D("f")
l = E("l")
d = F("d")
c = G("c")
n = C("n")
i = D("i")
e = G("e")

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