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

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: G = None
        self.p: J = None
        self.q: G = None
        self.v: G = None
        self.s: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: I = None
        self.w: C = None
        self.s: E = None
        self.y: F = None
        self.u: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.q: F = None
        self.w: I = None
        self.y: I = None
        self.u: C = None
        self.v: C = None
        self.p: F = None
        self.r: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: E = None
        self.w: I = None
        self.s: I = None
        self.q: B = None
        self.x: I = None
        self.txt = txt

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

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

d = A("d")
i = B("i")
m = C("m")
a = D("a")
g = E("g")
n = F("n")
b = G("b")
k = H("k")
e = I("e")
l = J("l")

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

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: G = None
        self.p: J = None
        self.q: G = None
        self.v: G = None
        self.s: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: I = None
        self.w: C = None
        self.s: E = None
        self.y: F = None
        self.u: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.q: F = None
        self.w: I = None
        self.y: I = None
        self.u: C = None
        self.v: C = None
        self.p: F = None
        self.r: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: E = None
        self.w: I = None
        self.s: I = None
        self.q: B = None
        self.x: I = None
        self.txt = txt

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

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

d = A("d")
i = B("i")
m = C("m")
a = D("a")
g = E("g")
n = F("n")
b = G("b")
k = H("k")
e = I("e")
l = J("l")

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