class A:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: E = None
        self.p: H = None
        self.r: H = None
        self.y: E = None
        self.x: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: C = None
        self.x: E = None
        self.w: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: E = None
        self.y: E = None
        self.z: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: D = None
        self.y: B = None
        self.txt = txt

k = A("k")
n = B("n")
a = C("a")
h = D("h")
e = E("e")
g = F("g")
d = G("d")
m = H("m")
f = E("f")

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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: C = None
        self.x: E = None
        self.w: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: E = None
        self.y: E = None
        self.z: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: D = None
        self.y: B = None
        self.txt = txt

k = A("k")
n = B("n")
a = C("a")
h = D("h")
e = E("e")
g = F("g")
d = G("d")
m = H("m")
f = E("f")

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