Rare Easy Problem
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
n is a random number, which for some reason, is at least two digits. John Doe, a nondescript man, performs an operation on n: he chops off the last digit to form a new number m, and then finds n - m. This excites him in a hard-to-justify way. He then tells you n - m. Thrilled by the fascinating back-story behind this number, you make it your life goal to figure out what n was.
Input
Input consists of multiple lines, one line per case. Each line contains a single positive integer between 10 and 10^18 inclusive, giving the value of n - m. Input is terminated by a line containing 0.
Output
For each case, print one line containing the possible values of n in sorted order. Separate consecutive numbers with a single space.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 24%