class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: G = None
        self.u: H = None
        self.r: H = None
        self.s: A = None
        self.q: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: D = None
        self.u: G = None
        self.p: A = None
        self.o: F = None
        self.r: G = None
        self.v: D = None
        self.s: A = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: G = None
        self.u: H = None
        self.r: H = None
        self.s: A = None
        self.q: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: D = None
        self.u: G = None
        self.p: A = None
        self.o: F = None
        self.r: G = None
        self.v: D = None
        self.s: A = None
        self.txt = txt

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

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