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

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

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: E = None
        self.x: B = None
        self.r: C = None
        self.q: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.t: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: E = None
        self.x: B = None
        self.r: C = None
        self.q: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.t: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

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