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

class B:
    def __init__(self, txt: str):
        self.w: J = None
        self.u: I = None
        self.o: C = None
        self.x: I = None
        self.z: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: A = None
        self.s: J = None
        self.p: A = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: B = None
        self.t: E = None
        self.v: C = None
        self.x: H = None
        self.y: G = None
        self.w: C = None
        self.q: H = None
        self.r: C = None
        self.s: E = None
        self.u: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: J = None
        self.u: I = None
        self.o: C = None
        self.x: I = None
        self.z: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: A = None
        self.s: J = None
        self.p: A = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: B = None
        self.t: E = None
        self.v: C = None
        self.x: H = None
        self.y: G = None
        self.w: C = None
        self.q: H = None
        self.r: C = None
        self.s: E = None
        self.u: B = None
        self.txt = txt

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

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