A Simple Problem with Integers

HDU - 4267