class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: D = None
        self.o: D = None
        self.q: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.y: C = None
        self.p: H = None
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.y: B = None
        self.t: B = None
        self.w: G = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.q: B = None
        self.s: H = None
        self.y: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.u: E = None
        self.w: A = None
        self.o: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.y: C = None
        self.p: H = None
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.y: B = None
        self.t: B = None
        self.w: G = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.q: B = None
        self.s: H = None
        self.y: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.u: E = None
        self.w: A = None
        self.o: E = None
        self.txt = txt

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

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

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