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

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

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

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

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

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

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

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

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

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

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

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

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