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

class B:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: F = None
        self.o: G = None
        self.y: F = None
        self.s: D = None
        self.q: E = None
        self.x: A = None
        self.r: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.z: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.z: I = None
        self.o: C = None
        self.u: H = None
        self.t: G = None
        self.x: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: F = None
        self.y: B = None
        self.q: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.s: B = None
        self.t: E = None
        self.v: E = None
        self.q: I = None
        self.x: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.z: H = None
        self.q: D = None
        self.x: E = None
        self.t: G = None
        self.v: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: F = None
        self.o: G = None
        self.y: F = None
        self.s: D = None
        self.q: E = None
        self.x: A = None
        self.r: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.z: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.z: I = None
        self.o: C = None
        self.u: H = None
        self.t: G = None
        self.x: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: F = None
        self.y: B = None
        self.q: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.s: B = None
        self.t: E = None
        self.v: E = None
        self.q: I = None
        self.x: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.z: H = None
        self.q: D = None
        self.x: E = None
        self.t: G = None
        self.v: D = None
        self.txt = txt

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

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