Hii, for such type of questions always remember that while distributing gifts to relatives there might be a relative which will recieve no gifts at all, but there would be no gift which doesnt get distributed.
Basic principle of distributing is that you distribute all you have, for here we are distributing 1000 gifts so we will distribute them full.
So each gift can go to any of the 25 relatives i.e for each gift there are 25 possibilities.
Therefore No of ways = 25 X 25 X 25 ........... 1000 times.
Hence total ways = 25^1000.