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

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

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

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: A = None
        self.s: H = None
        self.x: C = None
        self.o: G = None
        self.v: B = None
        self.y: E = None
        self.q: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

h = A("h")
k = B("k")
b = C("b")
e = D("e")
c = E("c")
d = F("d")
n = G("n")
a = H("a")
j = F("j")
g = C("g")

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: A = None
        self.s: H = None
        self.x: C = None
        self.o: G = None
        self.v: B = None
        self.y: E = None
        self.q: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

h = A("h")
k = B("k")
b = C("b")
e = D("e")
c = E("c")
d = F("d")
n = G("n")
a = H("a")
j = F("j")
g = C("g")

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