class A:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: C = None
        self.w: B = None
        self.t: E = None
        self.x: B = None
        self.txt = txt

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

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

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

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

e.r = d
i.v = j
i.z = j
i.w = l
i.x = l
i.t = d
j.s = d
c.o = l
d.w = e
d.t = l
d.y = j
l.v = j
l.z = j
l.w = i
l.x = i
l.t = d
assert l.t.t.w.v.s.txt == "
class A:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: C = None
        self.w: B = None
        self.t: E = None
        self.x: B = None
        self.txt = txt

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

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

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

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

e.r = d
i.v = j
i.z = j
i.w = l
i.x = l
i.t = d
j.s = d
c.o = l
d.w = e
d.t = l
d.y = j
l.v = j
l.z = j
l.w = i
l.x = i
l.t = d
assert l.t.t.w.v.s.txt == "d"