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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: C = None
        self.v: B = None
        self.x: J = None
        self.w: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.u: F = None
        self.r: J = None
        self.p: D = None
        self.x: J = None
        self.v: D = None
        self.y: B = None
        self.o: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: I = None
        self.u: I = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: C = None
        self.v: B = None
        self.x: J = None
        self.w: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.u: F = None
        self.r: J = None
        self.p: D = None
        self.x: J = None
        self.v: D = None
        self.y: B = None
        self.o: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: I = None
        self.u: I = None
        self.txt = txt

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

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