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. By the way, John was later eaten by a tiger.
Input consists of multiple lines, one line per case. Each line contains a single positive integer between 10 and 1018 inclusive, giving the value of N − M . Input is terminated by a line containing ‘0’.
For each case, print one line containing the possible values of N in sorted order. Separate consecutive numbers with a single space.
範例輸入 1
18 0
範例輸出 1
19 20
Pro 專屬功能: 查看這題在歷屆 CPE 出現過幾次 — 升級以解鎖.