class A:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: F = None
        self.o: D = None
        self.q: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.p: A = None
        self.s: F = None
        self.u: E = None
        self.z: E = None
        self.y: H = None
        self.x: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.p: A = None
        self.s: F = None
        self.u: E = None
        self.z: E = None
        self.y: H = None
        self.x: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: D = None
        self.txt = txt

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

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