class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: D = None
        self.y: F = None
        self.x: F = None
        self.o: C = None
        self.t: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: B = None
        self.y: B = None
        self.z: F = None
        self.t: G = None
        self.r: H = None
        self.x: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.x: H = None
        self.v: B = None
        self.s: B = None
        self.o: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.t: A = None
        self.v: C = None
        self.z: H = None
        self.x: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.s: F = None
        self.w: C = None
        self.x: D = None
        self.v: F = None
        self.y: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: D = None
        self.y: F = None
        self.x: F = None
        self.o: C = None
        self.t: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: B = None
        self.y: B = None
        self.z: F = None
        self.t: G = None
        self.r: H = None
        self.x: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.x: H = None
        self.v: B = None
        self.s: B = None
        self.o: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.t: A = None
        self.v: C = None
        self.z: H = None
        self.x: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.s: F = None
        self.w: C = None
        self.x: D = None
        self.v: F = None
        self.y: D = None
        self.txt = txt

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

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