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

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

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: C = None
        self.z: C = None
        self.y: C = None
        self.r: D = None
        self.txt = txt

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

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

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

n.v = k
n.x = h
n.o = h
n.p = c
h.p = k
e.q = i
e.r = i
e.o = k
e.z = k
e.y = f
a.t = j
a.s = n
a.r = i
a.x = h
c.x = a
c.y = a
c.s = n
c.p = n
i.t = c
i.s = n
i.r = a
i.x = h
k.q = i
k.r = i
k.o = e
k.z = e
k.y = f
j.x = a
j.y = a
j.s = n
j.p = n
f.q = i
f.r = i
f.o = k
f.z = k
f.y = e
assert n.v.r.s.txt == "
class A:
    def __init__(self, txt: str):
        self.v: C = None
        self.x: B = None
        self.o: B = None
        self.p: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: C = None
        self.z: C = None
        self.y: C = None
        self.r: D = None
        self.txt = txt

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

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

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

n.v = k
n.x = h
n.o = h
n.p = c
h.p = k
e.q = i
e.r = i
e.o = k
e.z = k
e.y = f
a.t = j
a.s = n
a.r = i
a.x = h
c.x = a
c.y = a
c.s = n
c.p = n
i.t = c
i.s = n
i.r = a
i.x = h
k.q = i
k.r = i
k.o = e
k.z = e
k.y = f
j.x = a
j.y = a
j.s = n
j.p = n
f.q = i
f.r = i
f.o = k
f.z = k
f.y = e
assert n.v.r.s.txt == "n"