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

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

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

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

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

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

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

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

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

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

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

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

n.w = c
n.v = c
c.v = h
c.o = h
c.p = l
c.r = l
c.u = l
i.t = f
i.p = k
i.z = c
i.y = c
i.s = n
l.r = i
l.o = h
l.v = f
l.z = n
h.o = k
k.t = f
k.p = i
k.z = c
k.y = c
k.s = n
f.w = c
f.v = c
assert c.r.z.v.v.o.s.v.txt == "c"