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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: I = None
        self.o: A = None
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: J = None
        self.s: H = None
        self.t: E = None
        self.w: G = None
        self.r: J = None
        self.o: C = None
        self.q: E = None
        self.x: H = None
        self.p: H = None
        self.y: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: H = None
        self.p: H = None
        self.u: A = None
        self.z: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.s: H = None
        self.w: E = None
        self.t: F = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: I = None
        self.o: A = None
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: J = None
        self.s: H = None
        self.t: E = None
        self.w: G = None
        self.r: J = None
        self.o: C = None
        self.q: E = None
        self.x: H = None
        self.p: H = None
        self.y: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: H = None
        self.p: H = None
        self.u: A = None
        self.z: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.s: H = None
        self.w: E = None
        self.t: F = None
        self.txt = txt

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

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