class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.x: D = None
        self.v: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

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

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

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

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