class A:
    def __init__(self, txt: str):
        self.z: J = None
        self.s: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.z: E = None
        self.r: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.r: H = None
        self.z: I = None
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: J = None
        self.q: H = None
        self.t: D = None
        self.r: D = None
        self.s: H = None
        self.w: G = None
        self.u: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.v: H = None
        self.q: B = None
        self.w: D = None
        self.r: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.x: F = None
        self.r: F = None
        self.o: H = None
        self.s: F = None
        self.p: E = None
        self.w: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.v: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: E = None
        self.y: A = None
        self.p: G = None
        self.z: E = None
        self.u: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.z: E = None
        self.r: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.r: H = None
        self.z: I = None
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: J = None
        self.q: H = None
        self.t: D = None
        self.r: D = None
        self.s: H = None
        self.w: G = None
        self.u: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.v: H = None
        self.q: B = None
        self.w: D = None
        self.r: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.x: F = None
        self.r: F = None
        self.o: H = None
        self.s: F = None
        self.p: E = None
        self.w: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.v: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: E = None
        self.y: A = None
        self.p: G = None
        self.z: E = None
        self.u: A = None
        self.txt = txt

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

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