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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.o: D = None
        self.s: A = None
        self.r: C = None
        self.u: G = None
        self.y: H = None
        self.w: G = None
        self.z: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: E = 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.x: D = None
        self.s: C = None
        self.o: C = None
        self.t: B = None
        self.r: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.t: A = None
        self.o: A = None
        self.u: H = None
        self.z: F = None
        self.r: B = None
        self.s: D = None
        self.p: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: B = None
        self.u: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.o: D = None
        self.s: A = None
        self.r: C = None
        self.u: G = None
        self.y: H = None
        self.w: G = None
        self.z: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: E = 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.x: D = None
        self.s: C = None
        self.o: C = None
        self.t: B = None
        self.r: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.t: A = None
        self.o: A = None
        self.u: H = None
        self.z: F = None
        self.r: B = None
        self.s: D = None
        self.p: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: B = None
        self.u: F = None
        self.txt = txt

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

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