class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.o: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.p: H = None
        self.y: A = None
        self.r: A = None
        self.z: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: C = None
        self.x: H = None
        self.s: H = None
        self.p: C = None
        self.t: C = None
        self.w: H = None
        self.u: F = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.p: H = None
        self.y: A = None
        self.r: A = None
        self.z: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: C = None
        self.x: H = None
        self.s: H = None
        self.p: C = None
        self.t: C = None
        self.w: H = None
        self.u: F = None
        self.txt = txt

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

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

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