Pattern,
51=552=2553=12554=62555=3125 (exponent is in the form of 4k+1)
56=15625
589 is in the form of 4k+1.
Remainder of any number more than 1000 will be the last three digits of the number.
Example: 1234 when divided by 1000 gives the remainder as 234.
Thus studying the pattern,
In, 5589 last three digits will be 125.
Thus the remainder will be 125.