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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.v: E = None
        self.s: B = None
        self.t: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.v: J = None
        self.u: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.v: E = None
        self.s: B = None
        self.t: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.v: J = None
        self.u: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

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