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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.r: D = None
        self.t: B = None
        self.w: D = None
        self.p: C = None
        self.txt = txt

l = A("l")
d = B("d")
i = C("i")
k = D("k")
g = E("g")
e = E("e")

l.v = g
l.t = e
l.z = e
l.u = i
l.y = d
d.t = k
i.p = e
k.p = i
g.y = d
g.t = d
g.r = k
g.w = k
g.p = i
e.y = d
e.t = d
e.r = k
e.w = k
e.p = i
assert e.r.p.p.txt == "
class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: E = None
        self.u: C = None
        self.y: B = None
        self.z: E = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.r: D = None
        self.t: B = None
        self.w: D = None
        self.p: C = None
        self.txt = txt

l = A("l")
d = B("d")
i = C("i")
k = D("k")
g = E("g")
e = E("e")

l.v = g
l.t = e
l.z = e
l.u = i
l.y = d
d.t = k
i.p = e
k.p = i
g.y = d
g.t = d
g.r = k
g.w = k
g.p = i
e.y = d
e.t = d
e.r = k
e.w = k
e.p = i
assert e.r.p.p.txt == "e"