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

class B:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: D = None
        self.u: A = None
        self.o: E = None
        self.z: H = None
        self.q: H = None
        self.s: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.r: G = None
        self.z: E = None
        self.w: F = None
        self.p: C = None
        self.o: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: D = None
        self.u: A = None
        self.o: E = None
        self.z: H = None
        self.q: H = None
        self.s: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.r: G = None
        self.z: E = None
        self.w: F = None
        self.p: C = None
        self.o: F = None
        self.txt = txt

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

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