Question 18Find all three-digit positive integers $n$ for which the numbers $n$ and $n^2$ coincide in the last three digits. (AIME 2014)