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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: B = None
        self.y: F = None
        self.s: H = None
        self.txt = txt

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

n = A("n")
a = B("a")
d = C("d")
f = D("f")
k = E("k")
j = F("j")
m = G("m")
b = H("b")
h = H("h")

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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: B = None
        self.y: F = None
        self.s: H = None
        self.txt = txt

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

n = A("n")
a = B("a")
d = C("d")
f = D("f")
k = E("k")
j = F("j")
m = G("m")
b = H("b")
h = H("h")

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