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

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

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: E = None
        self.y: A = None
        self.v: H = None
        self.z: A = None
        self.p: E = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.o: A = None
        self.q: C = None
        self.w: I = None
        self.p: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: F = None
        self.x: D = None
        self.z: C = None
        self.q: E = None
        self.v: D = None
        self.t: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: D = None
        self.w: I = None
        self.o: F = None
        self.s: B = None
        self.q: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: E = None
        self.y: A = None
        self.v: H = None
        self.z: A = None
        self.p: E = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.o: A = None
        self.q: C = None
        self.w: I = None
        self.p: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: F = None
        self.x: D = None
        self.z: C = None
        self.q: E = None
        self.v: D = None
        self.t: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: D = None
        self.w: I = None
        self.o: F = None
        self.s: B = None
        self.q: F = None
        self.txt = txt

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

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