class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.u: B = None
        self.s: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: A = None
        self.x: E = None
        self.p: B = None
        self.s: D = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: A = None
        self.x: E = None
        self.p: B = None
        self.s: D = None
        self.txt = txt

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

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

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

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

c.w = b
c.u = e
c.s = a
e.u = a
e.p = a
e.w = c
e.x = i
e.s = d
k.u = d
k.q = c
k.z = c
k.o = n
k.p = g
d.o = a
d.p = a
d.r = n
b.y = d
b.o = a
b.z = k
b.p = g
b.u = i
a.u = e
a.p = e
a.w = c
a.x = j
a.s = d
j.y = d
j.o = e
j.z = g
j.p = k
j.u = i
g.u = d
g.q = n
g.o = n
g.z = n
g.p = k
i.y = d
i.o = e
i.z = g
i.p = g
i.u = j
n.w = b
n.u = e
n.s = e
assert i.p.z.u.s.o.x.y.p.w.u.txt == "e"