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

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

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.t: C = None
        self.z: A = None
        self.q: C = None
        self.o: B = None
        self.txt = txt

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

j = A("j")
i = B("i")
l = C("l")
a = D("a")
h = E("h")
k = D("k")
d = D("d")
n = E("n")
g = E("g")
e = C("e")

j.w = a
j.y = i
j.o = i
j.r = d
i.s = e
i.x = j
l.v = i
l.q = d
l.o = e
a.x = j
a.z = j
a.t = l
a.q = l
a.o = i
h.o = d
h.q = d
h.y = j
k.x = j
k.z = j
k.t = e
k.q = e
k.o = i
d.x = j
d.z = j
d.t = l
d.q = e
d.o = i
n.o = d
n.q = d
n.y = j
g.o = k
g.q = k
g.y = j
e.v = i
e.q = a
e.o = l
assert d.z.w.t.q.o.s.q.o.s.txt == "
class A:
    def __init__(self, txt: str):
        self.w: D = None
        self.y: B = None
        self.r: D = None
        self.o: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.t: C = None
        self.z: A = None
        self.q: C = None
        self.o: B = None
        self.txt = txt

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

j = A("j")
i = B("i")
l = C("l")
a = D("a")
h = E("h")
k = D("k")
d = D("d")
n = E("n")
g = E("g")
e = C("e")

j.w = a
j.y = i
j.o = i
j.r = d
i.s = e
i.x = j
l.v = i
l.q = d
l.o = e
a.x = j
a.z = j
a.t = l
a.q = l
a.o = i
h.o = d
h.q = d
h.y = j
k.x = j
k.z = j
k.t = e
k.q = e
k.o = i
d.x = j
d.z = j
d.t = l
d.q = e
d.o = i
n.o = d
n.q = d
n.y = j
g.o = k
g.q = k
g.y = j
e.v = i
e.q = a
e.o = l
assert d.z.w.t.q.o.s.q.o.s.txt == "e"