class A:
    def __init__(self, txt: str):
        self.q: C = None
        self.x: J = None
        self.o: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: F = None
        self.u: F = None
        self.q: E = None
        self.y: B = None
        self.z: E = None
        self.r: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: J = None
        self.o: H = None
        self.r: G = None
        self.w: J = None
        self.txt = txt

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: F = None
        self.u: F = None
        self.q: E = None
        self.y: B = None
        self.z: E = None
        self.r: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: J = None
        self.o: H = None
        self.r: G = None
        self.w: J = None
        self.txt = txt

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

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

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

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

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

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