class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: J = None
        self.q: B = None
        self.t: E = None
        self.x: D = None
        self.r: C = None
        self.y: E = None
        self.v: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.v: I = None
        self.z: F = None
        self.y: J = None
        self.q: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: I = None
        self.y: G = None
        self.v: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: G = None
        self.s: C = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.x: D = None
        self.y: H = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.v: I = None
        self.z: F = None
        self.y: J = None
        self.q: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: I = None
        self.y: G = None
        self.v: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: G = None
        self.s: C = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.x: D = None
        self.y: H = None
        self.txt = txt

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

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

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

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

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