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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: D = None
        self.p: C = None
        self.z: C = None
        self.q: G = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: E = None
        self.t: E = None
        self.r: G = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: D = None
        self.p: C = None
        self.z: C = None
        self.q: G = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: E = None
        self.t: E = None
        self.r: G = None
        self.txt = txt

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

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