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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: D = None
        self.o: G = None
        self.r: C = None
        self.s: D = None
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: J = None
        self.s: A = None
        self.z: D = None
        self.r: G = None
        self.t: A = None
        self.w: H = None
        self.p: D = None
        self.v: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: G = None
        self.t: I = None
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.o: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: I = None
        self.x: F = None
        self.q: E = None
        self.y: D = None
        self.v: F = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: D = None
        self.o: G = None
        self.r: C = None
        self.s: D = None
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: J = None
        self.s: A = None
        self.z: D = None
        self.r: G = None
        self.t: A = None
        self.w: H = None
        self.p: D = None
        self.v: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: G = None
        self.t: I = None
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.o: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: I = None
        self.x: F = None
        self.q: E = None
        self.y: D = None
        self.v: F = None
        self.txt = txt

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

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

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

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