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

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

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

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

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

d = A("d")
b = B("b")
i = C("i")
l = D("l")
e = E("e")
n = B("n")
c = A("c")

d.v = l
d.o = e
d.p = e
d.y = b
d.r = b
b.p = l
b.t = l
i.q = e
l.o = n
l.r = i
l.u = i
l.z = i
l.p = e
e.s = c
e.y = i
e.z = l
e.x = n
e.v = n
n.p = l
n.t = l
c.v = l
c.o = e
c.p = e
c.y = b
c.r = n
assert l.o.p.u.q.s.v.p.txt == "
class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: E = None
        self.y: B = None
        self.r: B = None
        self.p: E = None
        self.txt = txt

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

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

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

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

d = A("d")
b = B("b")
i = C("i")
l = D("l")
e = E("e")
n = B("n")
c = A("c")

d.v = l
d.o = e
d.p = e
d.y = b
d.r = b
b.p = l
b.t = l
i.q = e
l.o = n
l.r = i
l.u = i
l.z = i
l.p = e
e.s = c
e.y = i
e.z = l
e.x = n
e.v = n
n.p = l
n.t = l
c.v = l
c.o = e
c.p = e
c.y = b
c.r = n
assert l.o.p.u.q.s.v.p.txt == "e"