class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.s: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.u: D = None
        self.z: D = None
        self.x: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: C = None
        self.s: A = None
        self.o: D = None
        self.r: F = None
        self.z: B = None
        self.t: C = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.s: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.u: D = None
        self.z: D = None
        self.x: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: C = None
        self.s: A = None
        self.o: D = None
        self.r: F = None
        self.z: B = None
        self.t: C = None
        self.txt = txt

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

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