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

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

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.o: B = None
        self.v: H = None
        self.p: D = None
        self.x: H = None
        self.q: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.o: B = None
        self.v: H = None
        self.p: D = None
        self.x: H = None
        self.q: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

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

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