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

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

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

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

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

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

a.s = h
a.u = m
a.v = e
a.y = i
a.p = j
m.v = e
m.z = f
m.o = a
m.w = i
m.s = d
j.w = i
j.y = e
j.o = e
j.v = a
h.t = d
h.p = a
h.q = i
d.t = m
d.p = m
d.u = k
d.v = h
k.t = d
k.q = d
k.p = a
i.t = f
i.p = f
i.u = c
i.v = k
e.w = i
e.y = j
e.o = j
e.v = a
f.v = e
f.z = m
f.o = a
f.w = i
f.s = i
c.t = d
c.q = d
c.p = a
assert i.u.t.p.v.v.s.p.u.txt == "
class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.u: B = None
        self.v: C = None
        self.y: E = None
        self.p: C = None
        self.txt = txt

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

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

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

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

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

a.s = h
a.u = m
a.v = e
a.y = i
a.p = j
m.v = e
m.z = f
m.o = a
m.w = i
m.s = d
j.w = i
j.y = e
j.o = e
j.v = a
h.t = d
h.p = a
h.q = i
d.t = m
d.p = m
d.u = k
d.v = h
k.t = d
k.q = d
k.p = a
i.t = f
i.p = f
i.u = c
i.v = k
e.w = i
e.y = j
e.o = j
e.v = a
f.v = e
f.z = m
f.o = a
f.w = i
f.s = i
c.t = d
c.q = d
c.p = a
assert i.u.t.p.v.v.s.p.u.txt == "m"