#T361. 围圈报数
围圈报数
Description
There are people standing in a circle in order. Starting from the first person, they count off, and the -th person is eliminated. Then, the next person starts counting again, and the -th person is eliminated. This process repeats until all people have been eliminated. The individuals are numbered from to . Print the order in which they are eliminated.
Input Format
and .
Output Format
The elimination order.
4 17
1 3 4 2
Hint
.