Time limit: 0.5s
Memory limit: 256MB
Input:
Output:
Task
Given a natural number , consider the set of numbers . For each from to , compute the function:
Since this number can become very large, only its remainder modulo is required.
Input data
The input contains a single integer, the number .
Output data
The output consists of a single line containing numbers, separated by one space, where the -th number is .
Constraints and clarifications
- .
# | Points | Restrictions |
---|---|---|
1 | 16 | |
2 | 29 | |
3 | 55 | No additional restrictions. |
Example
stdin
3
stdout
0 4 2