#T600. 符合条件的数

符合条件的数

Description

Enter three positive integers (all less than 10) from the keyboard. Using these three numbers as divisors, output the smallest ten numbers that leave a remainder of 1 when divided by each of them.

Input Format

Three positive integers.

Output Format

Ten integers that meet 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

Source

CodesOnline