class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: A = None
        self.z: B = None
        self.p: E = None
        self.w: B = None
        self.o: G = None
        self.txt = txt

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: G = None
        self.txt = txt

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

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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: G = None
        self.txt = txt

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

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