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

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

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

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

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

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

e.s = f
m.v = k
m.s = k
m.o = d
m.y = d
m.r = h
n.z = m
n.o = f
n.v = e
n.s = k
h.t = e
h.x = k
h.r = m
f.y = k
f.t = e
f.x = h
l.s = f
j.v = m
j.s = m
j.o = d
j.y = n
j.r = h
d.z = k
d.o = f
d.v = e
d.s = m
c.z = j
c.o = f
c.v = e
c.s = k
k.v = j
k.s = j
k.o = c
k.y = c
k.r = h
assert n.o.t.s.x.x.v.o.txt == "
class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

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

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

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

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

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

e.s = f
m.v = k
m.s = k
m.o = d
m.y = d
m.r = h
n.z = m
n.o = f
n.v = e
n.s = k
h.t = e
h.x = k
h.r = m
f.y = k
f.t = e
f.x = h
l.s = f
j.v = m
j.s = m
j.o = d
j.y = n
j.r = h
d.z = k
d.o = f
d.v = e
d.s = m
c.z = j
c.o = f
c.v = e
c.s = k
k.v = j
k.s = j
k.o = c
k.y = c
k.r = h
assert n.o.t.s.x.x.v.o.txt == "d"