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

class B:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: C = None
        self.z: E = None
        self.p: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.p: B = None
        self.v: B = None
        self.s: B = None
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.r: A = None
        self.v: B = None
        self.p: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: A = None
        self.u: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: C = None
        self.z: E = None
        self.p: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.p: B = None
        self.v: B = None
        self.s: B = None
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.r: A = None
        self.v: B = None
        self.p: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: A = None
        self.u: A = None
        self.txt = txt

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

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