class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.o: H = None
        self.q: E = None
        self.t: A = None
        self.w: D = None
        self.z: G = None
        self.x: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: J = None
        self.p: C = None
        self.v: C = None
        self.x: J = None
        self.t: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: C = None
        self.y: H = None
        self.v: H = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: A = None
        self.w: B = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.p: A = None
        self.x: H = None
        self.t: I = None
        self.u: A = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.o: H = None
        self.q: E = None
        self.t: A = None
        self.w: D = None
        self.z: G = None
        self.x: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: J = None
        self.p: C = None
        self.v: C = None
        self.x: J = None
        self.t: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: C = None
        self.y: H = None
        self.v: H = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: A = None
        self.w: B = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.p: A = None
        self.x: H = None
        self.t: I = None
        self.u: A = None
        self.txt = txt

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

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

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

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

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