Introduction - If you have any usage issues, please Google them yourself
A total of N individual numbers 1 to N, which take personal numbers 1 to M M circle. After gettin number (1 ≤ K ≤ M) the first K individuals turn to when the number of people reported as L, the smallest number of people who will not enter into this circle of people, and people are beginning to re-join Repeat process. When inserted into the final after this person Countin, reported that the number is L will be the first L and (L-1) and then let the two exchanged after the first exchange of personal L column, and then start the next person the reported number of people then exchange the first L and L (L-1), let the first L after a personal exchange column, and so forth. Q. The last person to leave the number of