There is one four-digit whole number n, such that the last four digits of n2 are in fact the original number n
Looking at the last digit, the last digit must be either 0, 1, 5 or 6.
Then looking at the last two digits, the last two digits must be either 00, 01, 25 or 76.
Then looking at the last three digits, the last three digits must be either 000, 001, 625 or 376.
Then looking at the last four digits, the last four digits must be either 0000, 0001, 0625 or 9376.
Out of those, only 9376 is a 4 digit number