My solution , first by congruency -
suppose 79999 = x (mod 1000)
Multiply each side by 7
so 710000 = 7x ( mod 1000 ) -------------- 1
but φ(p) for 1000 = 400
so 7400 = 1 ( mod 1000 )
again 710000 = 1 ( mod 1000 ) --------------------- 2
so from 1 and 2 , either 7x = 1 which is absurd ,
or 7x = 1 ( mod 1000 )
from here , x = 143 ( as 7 x 143 = 1001 )
I bet you liked this :P
Another method -------------
As 710000 = 1 ( mod 1000 )
So 710000 = 001 (mod 1000 )
So last 3 digits of 710000 are 001.
So last 3 digits of 79999 should be such that multiplying them by 7 , we should a get a
number ending with 001 .
Clearly last 3 digits are 143 only .