#T361. 围圈报数

围圈报数

Description

There are nn people standing in a circle in order. Starting from the first person, they count off, and the mm-th person is eliminated. Then, the next person starts counting again, and the mm-th person is eliminated. This process repeats until all people have been eliminated. The individuals are numbered from 11 to nn. Print the order in which they are eliminated.

Input Format

nn and mm.

Output Format

The elimination order.

4 17

1 3 4 2

Hint

n100n \leq 100.