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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: E = None
        self.o: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: G = None
        self.o: G = None
        self.t: G = None
        self.s: A = None
        self.u: C = None
        self.x: C = None
        self.txt = txt

k = A("k")
d = B("d")
b = C("b")
m = D("m")
l = E("l")
e = F("e")
a = G("a")
n = A("n")
c = A("c")
g = G("g")

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: E = None
        self.o: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: G = None
        self.o: G = None
        self.t: G = None
        self.s: A = None
        self.u: C = None
        self.x: C = None
        self.txt = txt

k = A("k")
d = B("d")
b = C("b")
m = D("m")
l = E("l")
e = F("e")
a = G("a")
n = A("n")
c = A("c")
g = G("g")

k.t = l
k.o = d
k.u = d
k.z = e
k.q = b
k.y = m
d.s = m
d.o = m
d.q = l
b.y = k
b.p = m
m.p = e
m.t = e
m.r = b
m.q = b
m.u = d
m.s = l
l.s = n
e.p = g
a.v = g
a.o = g
a.t = g
a.s = k
a.u = b
a.x = b
n.t = l
n.o = d
n.u = d
n.z = e
n.q = b
n.y = m
c.t = l
c.o = d
c.u = d
c.z = e
c.q = b
c.y = m
g.v = a
g.o = a
g.t = a
g.s = n
g.u = b
g.x = b
assert a.o.x.p.p.p.s.y.u.q.s.txt == "n"