class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.w: E = None
        self.r: I = None
        self.t: F = None
        self.y: J = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: J = None
        self.v: E = None
        self.z: C = None
        self.p: H = None
        self.o: B = None
        self.s: F = None
        self.y: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: C = None
        self.r: C = None
        self.p: C = None
        self.v: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: J = None
        self.v: A = None
        self.z: A = None
        self.y: J = None
        self.r: I = None
        self.s: E = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.w: B = None
        self.v: B = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: J = None
        self.v: E = None
        self.z: C = None
        self.p: H = None
        self.o: B = None
        self.s: F = None
        self.y: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: C = None
        self.r: C = None
        self.p: C = None
        self.v: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: J = None
        self.v: A = None
        self.z: A = None
        self.y: J = None
        self.r: I = None
        self.s: E = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.w: B = None
        self.v: B = None
        self.txt = txt

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

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