#T803. 符合条件的数

符合条件的数

Description

Enter three positive integers (all less than 10) from the keyboard. Using these three numbers as divisors, output the smallest ten numbers whose remainders are all 1 when divided by these three numbers.

Input Format

Three positive integers.

Output Format

Ten integers that satisfy the condition, separated by a single space. There should be no extra spaces at the end of the line.

```input1 2 3 5
```output1
1 31 61 91 121 151 181 211 241 271

译文

CodesOnline