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

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: A = None
        self.w: E = None
        self.z: D = None
        self.x: C = None
        self.t: E = None
        self.txt = txt

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: A = None
        self.w: E = None
        self.z: D = None
        self.x: C = None
        self.t: E = None
        self.txt = txt

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

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

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

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

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

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