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

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

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

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

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

k = A("k")
d = B("d")
e = C("e")
b = D("b")
i = E("i")
a = D("a")
l = B("l")
m = E("m")
c = B("c")
j = B("j")

k.w = l
k.y = e
d.o = e
d.r = i
e.s = m
e.x = k
e.z = l
b.p = e
b.q = e
b.o = i
b.v = k
i.v = a
i.x = d
i.q = e
a.p = e
a.q = e
a.o = i
a.v = k
l.o = e
l.r = i
m.v = b
m.x = d
m.q = e
c.o = e
c.r = m
j.o = e
j.r = m
assert d.o.x.w.o.txt == "
class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: C = None
        self.txt = txt

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

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

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

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

k = A("k")
d = B("d")
e = C("e")
b = D("b")
i = E("i")
a = D("a")
l = B("l")
m = E("m")
c = B("c")
j = B("j")

k.w = l
k.y = e
d.o = e
d.r = i
e.s = m
e.x = k
e.z = l
b.p = e
b.q = e
b.o = i
b.v = k
i.v = a
i.x = d
i.q = e
a.p = e
a.q = e
a.o = i
a.v = k
l.o = e
l.r = i
m.v = b
m.x = d
m.q = e
c.o = e
c.r = m
j.o = e
j.r = m
assert d.o.x.w.o.txt == "e"