PROGRAMMING:Ask for the last person in the circle
There are n (n < = 50) people in a circle, starting from 1, starting from the first person, and starting from 1 to m (m < = 50). Those who report to m quit the circle, and ask what number of people is left behind? The requirements are as follows.
(1) Function to achieve the number and exit.
(2) The values of N and m are input by the main function and transmitted to the function through the arguments, and the final results are output by the main function.
(3) Pointer is required.
###Input format:
There are several groups of test data, which are processed to the end of the file. Input natural numbers N and m on the same line for each group of test data (n < = 50, m < = 50)
###Output format:
Output the original serial number of the last person left behind
###Input example:
Here is a set of inputs. For example:
```in
10 5
45 12
```
###Output example:
The corresponding output is given here. For example:
```out
three
thirty-three
```
answer:If there is no answer, please comment
(1) Function to achieve the number and exit.
(2) The values of N and m are input by the main function and transmitted to the function through the arguments, and the final results are output by the main function.
(3) Pointer is required.
###Input format:
There are several groups of test data, which are processed to the end of the file. Input natural numbers N and m on the same line for each group of test data (n < = 50, m < = 50)
###Output format:
Output the original serial number of the last person left behind
###Input example:
Here is a set of inputs. For example:
```in
10 5
45 12
```
###Output example:
The corresponding output is given here. For example:
```out
three
thirty-three
```
answer:If there is no answer, please comment