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

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

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

class D:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: C = None
        self.u: D = None
        self.v: B = None
        self.p: A = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: C = None
        self.u: D = None
        self.v: B = None
        self.p: A = None
        self.txt = txt

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

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

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