A Simple Problem with Integers

POJ - 3468