class A:
    def __init__(self, txt: str):
        self.q: E = None
        self.r: J = None
        self.w: G = None
        self.p: I = None
        self.o: J = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.q: J = None
        self.w: E = None
        self.x: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: J = None
        self.z: J = None
        self.u: D = None
        self.p: B = None
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: J = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.q: J = None
        self.w: E = None
        self.x: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: J = None
        self.z: J = None
        self.u: D = None
        self.p: B = None
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: J = None
        self.txt = txt

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

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

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