- Time limit: 1.00 s
- Memory limit: 512 MB
Consider a game where there are children (numbered ) in a circle. During the game, every other child is removed from the circle until there are no children left. In which order will the children be removed?
Input
The only input line has an integer .
Output
Print integers: the removal order.
Constraints
Example
Input:
7
Output:
2 4 6 1 5 3 7