class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.w: F = None
        self.u: F = None
        self.t: C = None
        self.r: J = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.y: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: C = None
        self.o: F = None
        self.s: A = None
        self.u: D = None
        self.q: A = None
        self.t: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: E = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.u: G = None
        self.y: I = None
        self.w: H = None
        self.r: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.y: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: C = None
        self.o: F = None
        self.s: A = None
        self.u: D = None
        self.q: A = None
        self.t: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: E = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.u: G = None
        self.y: I = None
        self.w: H = None
        self.r: E = None
        self.txt = txt

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

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