class A:
    def __init__(self, txt: str):
        self.u: J = None
        self.z: J = None
        self.p: G = None
        self.s: C = None
        self.x: I = None
        self.o: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.y: I = None
        self.q: E = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.v: F = None
        self.q: H = None
        self.r: D = None
        self.o: C = None
        self.t: A = None
        self.p: H = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.y: I = None
        self.q: E = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.v: F = None
        self.q: H = None
        self.r: D = None
        self.o: C = None
        self.t: A = None
        self.p: H = None
        self.txt = txt

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

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

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