class A:
    def __init__(self, txt: str):
        self.x: J = None
        self.u: B = None
        self.y: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: I = None
        self.t: J = None
        self.z: E = None
        self.p: J = None
        self.q: A = None
        self.x: F = None
        self.r: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.r: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: I = None
        self.t: C = None
        self.z: A = None
        self.v: E = None
        self.s: A = None
        self.txt = txt

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.y: I = None
        self.w: A = None
        self.q: G = None
        self.r: E = None
        self.t: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: I = None
        self.t: J = None
        self.z: E = None
        self.p: J = None
        self.q: A = None
        self.x: F = None
        self.r: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.r: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: I = None
        self.t: C = None
        self.z: A = None
        self.v: E = None
        self.s: A = None
        self.txt = txt

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.y: I = None
        self.w: A = None
        self.q: G = None
        self.r: E = None
        self.t: B = None
        self.txt = txt

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

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