class A:
    def __init__(self, txt: str):
        self.o: B = None
        self.t: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.q: D = None
        self.p: E = None
        self.w: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.r: H = None
        self.o: I = None
        self.s: D = None
        self.p: F = None
        self.w: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: B = None
        self.v: B = None
        self.o: B = None
        self.s: F = None
        self.t: B = None
        self.u: G = None
        self.x: G = None
        self.p: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.p: B = None
        self.z: B = None
        self.q: G = None
        self.v: H = None
        self.r: E = None
        self.o: C = None
        self.y: D = None
        self.u: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: B = None
        self.y: B = None
        self.x: H = None
        self.w: H = None
        self.t: F = None
        self.r: F = None
        self.s: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: G = None
        self.y: B = None
        self.z: G = None
        self.u: D = None
        self.x: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: C = None
        self.p: A = None
        self.txt = txt

m = A("m")
a = B("a")
i = C("i")
e = D("e")
l = E("l")
d = F("d")
f = G("f")
j = H("j")
c = I("c")
k = I("k")

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

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.q: D = None
        self.p: E = None
        self.w: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.r: H = None
        self.o: I = None
        self.s: D = None
        self.p: F = None
        self.w: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: B = None
        self.v: B = None
        self.o: B = None
        self.s: F = None
        self.t: B = None
        self.u: G = None
        self.x: G = None
        self.p: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.p: B = None
        self.z: B = None
        self.q: G = None
        self.v: H = None
        self.r: E = None
        self.o: C = None
        self.y: D = None
        self.u: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: B = None
        self.y: B = None
        self.x: H = None
        self.w: H = None
        self.t: F = None
        self.r: F = None
        self.s: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: G = None
        self.y: B = None
        self.z: G = None
        self.u: D = None
        self.x: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: C = None
        self.p: A = None
        self.txt = txt

m = A("m")
a = B("a")
i = C("i")
e = D("e")
l = E("l")
d = F("d")
f = G("f")
j = H("j")
c = I("c")
k = I("k")

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