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

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

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: E = None
        self.v: J = None
        self.u: B = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: I = None
        self.t: E = None
        self.w: B = None
        self.u: H = None
        self.x: F = None
        self.s: E = None
        self.p: F = None
        self.v: J = None
        self.q: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: J = None
        self.s: F = None
        self.p: J = None
        self.x: F = None
        self.u: I = None
        self.o: E = None
        self.txt = txt

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

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

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

l.z = k
l.u = c
l.p = c
l.r = f
l.x = d
l.v = d
l.q = i
l.s = g
l.y = g
d.o = n
d.y = n
d.p = g
d.x = h
d.v = k
d.s = a
d.q = a
d.z = l
i.x = d
i.u = d
i.p = g
i.s = g
i.v = n
f.o = a
f.t = g
f.s = g
f.w = d
f.q = d
f.u = h
f.x = k
f.p = k
f.v = n
g.r = h
k.r = h
k.o = a
k.p = a
k.q = l
k.t = c
k.v = c
k.y = d
k.w = i
c.p = h
h.w = n
h.p = n
h.s = k
h.x = k
h.u = a
h.o = g
a.w = g
a.z = d
a.p = c
a.r = l
a.q = h
a.o = k
a.y = i
a.v = f
n.p = d
n.q = d
n.o = k
n.t = a
n.s = h
n.z = l
assert h.o.r.w.s.w.txt == "
class A:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: G = None
        self.r: D = None
        self.x: B = None
        self.p: G = None
        self.q: C = None
        self.v: B = None
        self.s: E = None
        self.y: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: E = None
        self.v: J = None
        self.u: B = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: I = None
        self.t: E = None
        self.w: B = None
        self.u: H = None
        self.x: F = None
        self.s: E = None
        self.p: F = None
        self.v: J = None
        self.q: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: J = None
        self.s: F = None
        self.p: J = None
        self.x: F = None
        self.u: I = None
        self.o: E = None
        self.txt = txt

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

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

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

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