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

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

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.p: C = None
        self.u: G = None
        self.v: B = None
        self.o: A = None
        self.r: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.w: F = None
        self.t: D = None
        self.r: A = None
        self.v: G = None
        self.y: F = None
        self.u: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.t: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.p: C = None
        self.u: G = None
        self.v: B = None
        self.o: A = None
        self.r: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.w: F = None
        self.t: D = None
        self.r: A = None
        self.v: G = None
        self.y: F = None
        self.u: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.t: D = None
        self.txt = txt

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

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