class A:
    def __init__(self, txt: str):
        self.z: G = None
        self.r: E = None
        self.q: D = None
        self.t: I = None
        self.y: C = None
        self.o: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: J = None
        self.q: C = None
        self.w: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.z: F = None
        self.q: H = None
        self.y: E = None
        self.r: I = None
        self.u: J = None
        self.t: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.x: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: B = None
        self.w: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: J = None
        self.q: C = None
        self.w: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.z: F = None
        self.q: H = None
        self.y: E = None
        self.r: I = None
        self.u: J = None
        self.t: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.x: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: B = None
        self.w: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: C = None
        self.txt = txt

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

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