class A:
    def __init__(self, txt: str):
        self.w: J = None
        self.q: C = None
        self.t: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: J = None
        self.u: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.w: A = None
        self.z: E = None
        self.r: F = None
        self.t: I = None
        self.u: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.u: E = None
        self.w: B = None
        self.v: A = None
        self.t: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.z: C = None
        self.w: C = None
        self.y: C = None
        self.r: B = None
        self.o: C = None
        self.t: A = None
        self.txt = txt

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

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

n = A("n")
h = B("h")
f = C("f")
m = D("m")
a = E("a")
g = F("g")
i = G("i")
c = H("c")
e = I("e")
j = J("j")

n.w = j
n.q = f
n.t = c
h.r = j
h.u = g
f.o = n
f.w = n
f.z = a
f.r = g
f.t = e
f.u = j
m.q = a
m.u = a
m.w = h
m.v = n
m.t = c
a.z = e
a.x = e
a.q = e
a.y = c
a.s = m
a.u = j
a.t = j
a.w = i
a.r = n
a.v = f
g.o = i
g.x = i
g.v = c
g.p = c
g.r = c
g.u = n
g.z = e
g.q = e
g.s = m
i.p = a
i.t = m
c.s = f
c.z = f
c.w = f
c.y = f
c.o = f
c.r = h
c.t = n
e.r = n
e.o = n
e.w = n
e.x = c
e.y = j
e.u = j
e.z = i
e.v = f
e.q = f
e.t = h
j.q = i
j.s = m
assert n.t.t.t.txt == "
class A:
    def __init__(self, txt: str):
        self.w: J = None
        self.q: C = None
        self.t: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: J = None
        self.u: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.w: A = None
        self.z: E = None
        self.r: F = None
        self.t: I = None
        self.u: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.u: E = None
        self.w: B = None
        self.v: A = None
        self.t: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.z: C = None
        self.w: C = None
        self.y: C = None
        self.r: B = None
        self.o: C = None
        self.t: A = None
        self.txt = txt

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

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

n = A("n")
h = B("h")
f = C("f")
m = D("m")
a = E("a")
g = F("g")
i = G("i")
c = H("c")
e = I("e")
j = J("j")

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