SCU Practice Contest 1 In Summer

H: A Simple Problem with Integers