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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: J = None
        self.s: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.o: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.t: C = None
        self.z: C = None
        self.y: C = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: J = None
        self.s: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.o: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.t: C = None
        self.z: C = None
        self.y: C = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: F = None
        self.txt = txt

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

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

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