Four-Digit Whole Number Puzzle

The Puzzle:

Four-Digit Whole Number

There is one four-digit whole number n, such that the last four digits of n2 are in fact the original number n.

Do you have the answer? Check against our solution!