Introduction - If you have any usage issues, please Google them yourself
n monkeys to choose the Monkey King, all the monkeys by 1,2, ..., n No sitting around, starting from No. 1 by 1,2, ..., m the number reported, where m number of monkeys to report exit out of the loop, reported that the number of cycles until the circle remains a monkey, this monkey is the Monkey King. Write a program to achieve the above process, n and m from the keyboard input.