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

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

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

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: B = None
        self.x: D = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: E = None
        self.p: B = None
        self.y: D = None
        self.t: H = None
        self.x: E = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: B = None
        self.x: D = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: E = None
        self.p: B = None
        self.y: D = None
        self.t: H = None
        self.x: E = None
        self.txt = txt

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

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

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

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