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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.w: D = None
        self.z: E = None
        self.s: B = None
        self.u: B = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.w: D = None
        self.z: E = None
        self.s: B = None
        self.u: B = None
        self.txt = txt

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

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