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

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

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

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.z: A = None
        self.txt = txt

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

n = A("n")
f = B("f")
m = C("m")
l = D("l")
i = E("i")
g = E("g")
h = D("h")
j = E("j")
a = C("a")
e = E("e")

n.s = g
n.v = l
n.u = f
n.z = j
n.y = j
f.s = j
f.o = j
f.r = h
f.p = m
m.y = e
m.z = h
m.s = f
m.t = n
m.q = n
l.s = m
l.z = n
i.y = e
i.o = n
g.y = i
g.o = n
h.s = m
h.z = n
j.y = e
j.o = n
a.y = e
a.z = h
a.s = f
a.t = n
a.q = n
e.y = j
e.o = n
assert m.s.r.z.u.o.y.y.o.v.txt == "
class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: D = None
        self.u: B = None
        self.z: E = None
        self.y: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.z: A = None
        self.txt = txt

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

n = A("n")
f = B("f")
m = C("m")
l = D("l")
i = E("i")
g = E("g")
h = D("h")
j = E("j")
a = C("a")
e = E("e")

n.s = g
n.v = l
n.u = f
n.z = j
n.y = j
f.s = j
f.o = j
f.r = h
f.p = m
m.y = e
m.z = h
m.s = f
m.t = n
m.q = n
l.s = m
l.z = n
i.y = e
i.o = n
g.y = i
g.o = n
h.s = m
h.z = n
j.y = e
j.o = n
a.y = e
a.z = h
a.s = f
a.t = n
a.q = n
e.y = j
e.o = n
assert m.s.r.z.u.o.y.y.o.v.txt == "l"