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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: D = None
        self.s: C = None
        self.v: D = None
        self.w: C = None
        self.txt = txt

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

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

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

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

a.p = l
a.o = c
a.x = g
i.y = k
i.w = k
i.r = g
i.v = g
i.s = c
k.o = c
k.w = d
k.y = g
k.x = g
k.r = g
g.u = l
g.q = i
l.y = g
l.o = g
l.v = h
h.p = l
h.o = d
h.x = g
c.o = k
c.w = k
c.y = g
c.x = g
c.r = g
d.o = k
d.w = k
d.y = g
d.x = g
d.r = g
n.y = k
n.w = k
n.r = g
n.v = g
n.s = c
assert c.y.u.o.u.v.txt == "
class A:
    def __init__(self, txt: str):
        self.p: E = None
        self.o: C = None
        self.x: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: D = None
        self.s: C = None
        self.v: D = None
        self.w: C = None
        self.txt = txt

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

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

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

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

a.p = l
a.o = c
a.x = g
i.y = k
i.w = k
i.r = g
i.v = g
i.s = c
k.o = c
k.w = d
k.y = g
k.x = g
k.r = g
g.u = l
g.q = i
l.y = g
l.o = g
l.v = h
h.p = l
h.o = d
h.x = g
c.o = k
c.w = k
c.y = g
c.x = g
c.r = g
d.o = k
d.w = k
d.y = g
d.x = g
d.r = g
n.y = k
n.w = k
n.r = g
n.v = g
n.s = c
assert c.y.u.o.u.v.txt == "h"