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

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

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: H = None
        self.x: H = None
        self.z: H = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: E = None
        self.r: C = None
        self.p: D = None
        self.v: E = None
        self.w: B = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: H = None
        self.x: H = None
        self.z: H = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: E = None
        self.r: C = None
        self.p: D = None
        self.v: E = None
        self.w: B = None
        self.txt = txt

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

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

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