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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: E = None
        self.y: G = None
        self.txt = txt

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

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: E = None
        self.y: G = None
        self.txt = txt

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

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

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