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