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

class B:
    def __init__(self, txt: str):
        self.v: I = None
        self.r: D = None
        self.x: J = None
        self.t: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: I = None
        self.w: F = None
        self.z: H = None
        self.r: C = None
        self.t: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.r: A = None
        self.u: H = None
        self.s: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.z: I = None
        self.y: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: D = None
        self.u: C = None
        self.z: F = None
        self.o: A = None
        self.q: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: I = None
        self.r: D = None
        self.x: J = None
        self.t: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: I = None
        self.w: F = None
        self.z: H = None
        self.r: C = None
        self.t: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.r: A = None
        self.u: H = None
        self.s: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.z: I = None
        self.y: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: D = None
        self.u: C = None
        self.z: F = None
        self.o: A = None
        self.q: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

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

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