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

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

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

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.z: G = None
        self.u: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: B = None
        self.o: D = None
        self.z: G = None
        self.p: G = None
        self.y: D = None
        self.q: G = None
        self.txt = txt

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

n = A("n")
i = B("i")
c = C("c")
k = D("k")
a = E("a")
g = F("g")
e = G("e")
l = B("l")

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.z: G = None
        self.u: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: B = None
        self.o: D = None
        self.z: G = None
        self.p: G = None
        self.y: D = None
        self.q: G = None
        self.txt = txt

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

n = A("n")
i = B("i")
c = C("c")
k = D("k")
a = E("a")
g = F("g")
e = G("e")
l = B("l")

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