class A:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: C = None
        self.r: A = None
        self.u: A = None
        self.x: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.x: D = None
        self.p: D = None
        self.y: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.t: E = None
        self.v: C = None
        self.q: A = None
        self.y: B = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.x: D = None
        self.p: D = None
        self.y: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.t: E = None
        self.v: C = None
        self.q: A = None
        self.y: B = None
        self.txt = txt

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

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

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