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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.s: I = None
        self.q: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.p: F = None
        self.t: I = None
        self.z: B = None
        self.s: C = None
        self.x: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: D = None
        self.t: A = None
        self.q: B = None
        self.z: D = None
        self.r: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.p: E = None
        self.t: J = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.s: I = None
        self.q: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.p: F = None
        self.t: I = None
        self.z: B = None
        self.s: C = None
        self.x: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: D = None
        self.t: A = None
        self.q: B = None
        self.z: D = None
        self.r: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.p: E = None
        self.t: J = None
        self.txt = txt

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

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

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

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