class A:
    def __init__(self, txt: str):
        self.u: J = None
        self.s: D = None
        self.w: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: G = None
        self.q: A = None
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: J = None
        self.s: H = None
        self.z: I = None
        self.r: I = None
        self.x: J = None
        self.t: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: F = None
        self.x: J = None
        self.z: I = None
        self.y: J = None
        self.t: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: B = None
        self.q: D = None
        self.s: F = None
        self.z: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: E = None
        self.txt = txt

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

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

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

c.u = i
c.s = g
c.w = e
h.y = g
h.w = g
h.z = n
h.o = m
h.s = m
h.x = i
h.p = i
h.u = e
h.q = e
h.t = k
m.o = c
m.q = c
m.y = a
m.u = g
g.o = i
g.x = i
g.s = n
g.z = k
g.r = k
g.t = k
b.q = a
b.p = e
b.x = i
b.y = i
b.z = k
b.t = n
e.r = b
e.q = b
e.p = b
e.w = c
e.v = a
e.t = a
e.z = i
e.x = g
a.u = e
a.s = e
a.o = h
a.q = g
a.z = b
n.u = g
n.o = b
k.z = n
k.p = b
k.q = c
k.x = h
k.v = m
k.w = m
k.y = m
k.o = m
i.o = g
i.w = g
i.y = n
i.r = n
i.u = n
i.z = b
i.x = k
i.p = k
i.s = a
i.q = m
assert m.q.u.s.q.s.u.s.o.z.z.txt == "
class A:
    def __init__(self, txt: str):
        self.u: J = None
        self.s: D = None
        self.w: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: G = None
        self.q: A = None
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: J = None
        self.s: H = None
        self.z: I = None
        self.r: I = None
        self.x: J = None
        self.t: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: F = None
        self.x: J = None
        self.z: I = None
        self.y: J = None
        self.t: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: B = None
        self.q: D = None
        self.s: F = None
        self.z: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: E = None
        self.txt = txt

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

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

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

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