class A:
    def __init__(self, txt: str):
        self.x: I = None
        self.s: J = None
        self.t: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: J = None
        self.s: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: I = None
        self.q: G = None
        self.u: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.y: E = None
        self.w: J = None
        self.u: J = None
        self.q: J = None
        self.r: I = None
        self.p: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: C = None
        self.r: A = None
        self.z: B = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: J = None
        self.s: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: I = None
        self.q: G = None
        self.u: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.y: E = None
        self.w: J = None
        self.u: J = None
        self.q: J = None
        self.r: I = None
        self.p: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: C = None
        self.r: A = None
        self.z: B = None
        self.txt = txt

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

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

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