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

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

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.s: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: C = None
        self.p: G = None
        self.u: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.s: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: C = None
        self.p: G = None
        self.u: F = None
        self.txt = txt

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

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