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

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

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: F = None
        self.o: E = None
        self.y: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.y: G = None
        self.t: F = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: E = None
        self.p: D = None
        self.o: F = None
        self.z: D = None
        self.t: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: F = None
        self.o: E = None
        self.y: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.y: G = None
        self.t: F = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: E = None
        self.p: D = None
        self.o: F = None
        self.z: D = None
        self.t: A = None
        self.txt = txt

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

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