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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.u: H = None
        self.x: J = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.v: D = None
        self.r: H = None
        self.o: D = None
        self.w: F = None
        self.u: E = None
        self.x: I = None
        self.z: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.o: J = None
        self.s: A = None
        self.p: B = None
        self.u: B = None
        self.v: A = None
        self.t: D = None
        self.q: H = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.u: H = None
        self.x: J = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.v: D = None
        self.r: H = None
        self.o: D = None
        self.w: F = None
        self.u: E = None
        self.x: I = None
        self.z: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.o: J = None
        self.s: A = None
        self.p: B = None
        self.u: B = None
        self.v: A = None
        self.t: D = None
        self.q: H = None
        self.txt = txt

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

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

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