Problem A
Candy Division
Benny has just found out that he has
Given
Input
The input contains one line with one integer
Output
Output one line with all possible number of friends Benny can invite. Output them in ascending order and separate by spaces.
Sample Input 1 | Sample Output 1 |
---|---|
30 |
0 1 2 4 5 9 14 29 |