Answer: 1190.

Solution. Draw through the given point $(35 ; 65)$ vertical and horizontal lines $(x=35$ and $y=65)$. There are two possible cases.

a) The vertices of the square lie on these lines (and its diagonals are parallel to the coordinate axes). Then the "left" vertex of the square can be located in 34 ways: $(1 ; 65),(2 ; 65), \ldots(34 ; 65)$ (the position of the other vertices is uniquely determined in this case).

b) The vertices of the square do not lie on the specified lines. This means that the vertices lie one in each of the four parts into which the lines $x=35$ and $y=65$ divide the plane. Consider the "lower left" vertex (its location uniquely determines the other vertices). For the coordinates of all vertices of the square to be natural, it is necessary and sufficient for this vertex to fall into the square $1 \leqslant x \leqslant 34,31 \leqslant y \leqslant 64$. We get $34^{2}$ ways.

The total number of ways is $34^{2}+34=34 \cdot 35=1190$.
5. On the coordinate plane, squares are considered, all vertices of which have natural coordinates, and the center is located at the point $(35 ; 65)$. Find the number of such squares.