class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.q: C = None
        self.y: I = None
        self.r: F = None
        self.z: C = None
        self.x: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.w: G = None
        self.z: I = None
        self.r: I = None
        self.q: F = None
        self.v: H = None
        self.y: J = None
        self.o: H = None
        self.x: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.u: J = None
        self.t: C = None
        self.v: D = None
        self.o: G = None
        self.q: G = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.o: D = None
        self.p: F = None
        self.v: D = None
        self.y: C = None
        self.r: B = None
        self.s: F = None
        self.q: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.w: G = None
        self.z: I = None
        self.r: I = None
        self.q: F = None
        self.v: H = None
        self.y: J = None
        self.o: H = None
        self.x: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.u: J = None
        self.t: C = None
        self.v: D = None
        self.o: G = None
        self.q: G = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.o: D = None
        self.p: F = None
        self.v: D = None
        self.y: C = None
        self.r: B = None
        self.s: F = None
        self.q: I = None
        self.txt = txt

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

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