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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.p: E = None
        self.z: D = None
        self.y: G = None
        self.o: G = None
        self.u: C = None
        self.t: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: J = None
        self.y: C = None
        self.w: C = None
        self.x: C = None
        self.p: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.r: F = None
        self.w: C = None
        self.v: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.r: B = None
        self.x: J = None
        self.t: E = None
        self.y: A = None
        self.v: E = None
        self.u: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.p: E = None
        self.z: D = None
        self.y: G = None
        self.o: G = None
        self.u: C = None
        self.t: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: J = None
        self.y: C = None
        self.w: C = None
        self.x: C = None
        self.p: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.r: F = None
        self.w: C = None
        self.v: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.r: B = None
        self.x: J = None
        self.t: E = None
        self.y: A = None
        self.v: E = None
        self.u: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

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