POJ 3468 A Simple Problem with Integers