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

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

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

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

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

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

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

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

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

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

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

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

a.u = h
a.q = f
a.s = e
a.z = k
c.y = k
c.o = j
c.r = e
c.u = l
h.p = l
h.o = c
h.q = e
h.u = d
h.x = d
e.s = j
e.z = f
e.o = f
e.u = c
e.p = d
f.s = a
f.o = c
f.r = c
f.p = h
f.u = h
d.s = g
d.o = c
d.r = c
d.p = l
d.u = h
l.p = h
l.o = c
l.q = j
l.u = d
l.x = k
j.s = e
j.z = d
j.p = d
j.u = c
j.o = f
k.s = g
k.o = c
k.r = c
k.p = l
k.u = h
g.u = h
g.q = f
g.s = j
g.z = k
assert c.y.p.q.s.z.r.o.z.p.txt == "l"