class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: B = None
        self.v: H = None
        self.t: I = None
        self.q: E = None
        self.p: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.z: E = None
        self.p: A = None
        self.x: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: J = None
        self.o: J = None
        self.v: B = None
        self.s: J = None
        self.z: E = None
        self.q: D = None
        self.x: B = None
        self.r: E = None
        self.t: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: I = None
        self.t: G = None
        self.q: H = None
        self.y: H = None
        self.w: F = None
        self.v: G = None
        self.s: J = None
        self.o: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: H = None
        self.o: J = None
        self.z: H = None
        self.w: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: E = None
        self.w: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.z: B = None
        self.x: G = None
        self.v: A = None
        self.t: D = None
        self.w: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: D = None
        self.x: A = None
        self.s: H = None
        self.txt = txt

d = A("d")
f = B("f")
k = C("k")
b = D("b")
e = E("e")
a = F("a")
h = G("h")
n = H("n")
m = I("m")
i = J("i")

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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.z: E = None
        self.p: A = None
        self.x: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: J = None
        self.o: J = None
        self.v: B = None
        self.s: J = None
        self.z: E = None
        self.q: D = None
        self.x: B = None
        self.r: E = None
        self.t: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: I = None
        self.t: G = None
        self.q: H = None
        self.y: H = None
        self.w: F = None
        self.v: G = None
        self.s: J = None
        self.o: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: H = None
        self.o: J = None
        self.z: H = None
        self.w: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: E = None
        self.w: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.z: B = None
        self.x: G = None
        self.v: A = None
        self.t: D = None
        self.w: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: D = None
        self.x: A = None
        self.s: H = None
        self.txt = txt

d = A("d")
f = B("f")
k = C("k")
b = D("b")
e = E("e")
a = F("a")
h = G("h")
n = H("n")
m = I("m")
i = J("i")

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