Let $A = (0, 0)$ and $B = (1001, 429) = (143 \cdot 7, 143 \cdot 3)$. Between the points $(0, 0)$ and $(7, 3)$, $AB$ can intersect the square at lattice point $(m, n)$ only if it passes between the upper-left and lower-right corners of the square. That is, \[ n + \dfrac{1}{10} \geqslant \dfrac{3}{7}\left(m - \dfrac{1}{10}\right) \text{ and } n - \dfrac{1}{10} \leqslant \dfrac{3}{7}\left(m + \dfrac{1}{10}\right). \] This implies $3m - 1 \leqslant 7n \leqslant 3m + 1$. The only lattice points $(m, n)$ with $0 \leqslant m \leqslant 7$ which satisfy this requirement are $(0, 0)$, $(2, 1)$, $(5, 2)$, and $(7, 3)$. In the cases of $(0, 0)$ and $(7, 3)$, $AB$ passes through the center of the square centered at that point, so it also intersects the circle centered at that point. In the cases of $(2, 1)$ and $(5, 2)$, $AB$ passes through the lower-right and upper-left corners of the square centered at that point, respectively, so it does not intersect the circle centered at that point. Altogether the segment joining $(0, 0)$ to $(7, 3)$ intersects $4$ squares and $2$ circles. The same conclusion applies to the segment joining $(7k - 7, 3k - 3)$ to $(7k, 3k)$ for each $k$ with $1 \leqslant k \leqslant 143$. Because the points $(7k, 3k)$ belong to two of these segments for $1 \leqslant k \leqslant 142$, $AB$ intersects $4 \cdot 143 - 142 = 430$ of the squares and $2 \cdot 143 - 142 = 144$ of the circles. The requested sum is $430 + 144 = 574$.