1. Consider the pair of four-digit positive integers $(M,N)=(3600,2500)$.
Notice that $M$ and $N$ are both perfect squares, with equal digits in two places, and differing digits in the remaining two places. Moreover, when the digits differ, the digit in $M$ is exactly one greater than the corresponding digit in $N$. Find all pairs of four-digit positive integers $(M,N)$ with these properties.