class A:
    def __init__(self, txt: str):
        self.q: G = None
        self.o: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: H = None
        self.q: A = None
        self.r: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: C = None
        self.t: C = None
        self.z: E = None
        self.q: E = None
        self.s: C = None
        self.y: E = None
        self.p: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: B = None
        self.w: A = None
        self.z: B = None
        self.q: F = None
        self.y: F = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: H = None
        self.q: A = None
        self.r: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: C = None
        self.t: C = None
        self.z: E = None
        self.q: E = None
        self.s: C = None
        self.y: E = None
        self.p: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: B = None
        self.w: A = None
        self.z: B = None
        self.q: F = None
        self.y: F = None
        self.txt = txt

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

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

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