Problem C
The Easiest Problem Is This One
Some people think this is the easiest problem in today’s problem set. Some people think otherwise, since it involves sums of digits of numbers and that’s difficult to grasp.
If we multiply a number
However, there are some numbers that if multiplied by
Your task is to find the smallest positive integer
Input
The input consists of several test cases. Each case is
described by a single line containing one positive integer
number
Output
For each test case, print one line with a single integer
number
Sample Input 1 | Sample Output 1 |
---|---|
3029 4 5 42 0 |
37 28 28 25 |