class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: D = None
        self.p: E = None
        self.r: D = None
        self.s: E = None
        self.y: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.u: E = None
        self.z: H = None
        self.v: I = None
        self.x: A = None
        self.r: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: H = None
        self.u: H = None
        self.v: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.p: H = None
        self.o: A = None
        self.s: J = None
        self.t: B = None
        self.v: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: J = None
        self.o: B = None
        self.q: H = None
        self.x: G = None
        self.s: F = None
        self.w: A = None
        self.u: G = None
        self.txt = txt

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

k = A("k")
b = B("b")
e = C("e")
a = D("a")
l = E("l")
d = F("d")
n = G("n")
j = H("j")
h = I("h")
i = J("i")

k.s = j
b.v = i
b.w = j
b.q = n
e.x = n
e.y = n
e.v = a
e.r = a
e.p = l
e.s = l
a.q = j
a.z = j
a.u = l
a.v = h
a.x = k
a.r = e
l.o = e
l.w = j
l.u = j
l.v = d
d.w = n
d.q = b
d.v = e
d.t = i
n.y = j
n.p = j
n.o = k
n.v = k
n.s = i
n.t = b
j.q = l
j.t = l
j.v = l
h.z = d
h.s = d
h.r = i
h.o = b
h.q = j
h.x = n
h.u = n
h.w = k
i.x = b
i.r = b
i.w = l
i.o = j
i.v = a
i.y = n
assert n.v.s.t.o.s.v.q.txt == "
class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: D = None
        self.p: E = None
        self.r: D = None
        self.s: E = None
        self.y: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.u: E = None
        self.z: H = None
        self.v: I = None
        self.x: A = None
        self.r: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: H = None
        self.u: H = None
        self.v: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.p: H = None
        self.o: A = None
        self.s: J = None
        self.t: B = None
        self.v: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: J = None
        self.o: B = None
        self.q: H = None
        self.x: G = None
        self.s: F = None
        self.w: A = None
        self.u: G = None
        self.txt = txt

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

k = A("k")
b = B("b")
e = C("e")
a = D("a")
l = E("l")
d = F("d")
n = G("n")
j = H("j")
h = I("h")
i = J("i")

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