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

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

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

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

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

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

i.s = c
i.u = k
l.o = m
l.r = c
l.t = i
l.u = h
c.p = h
c.z = n
n.v = h
k.u = c
k.o = c
k.t = l
k.r = d
d.v = i
h.s = c
h.u = k
m.v = i
assert k.r.v.s.z.v.s.z.txt == "
class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: E = None
        self.txt = txt

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

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

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

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

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

i.s = c
i.u = k
l.o = m
l.r = c
l.t = i
l.u = h
c.p = h
c.z = n
n.v = h
k.u = c
k.o = c
k.t = l
k.r = d
d.v = i
h.s = c
h.u = k
m.v = i
assert k.r.v.s.z.v.s.z.txt == "n"