PROGRAMMING:Joseph problem 2
###Task description
```
N children sit around in a circle, and number 1, 2,..., n clockwise. The children numbered P count clockwise, from 1 to M. when they report to m, the child goes out of the circle, and then the next one counts from 1, and then goes out when they report to M. This is repeated until all the children are out of the circle. Please output the number of the child in the order of going out.
```
###Input format:
```
Each line is three integers separated by spaces, the first is n, the second is p, and the third is m (0 < m, n < 300). The last line is:
0 0 0
```
###Output format:
```
Output the numbers in the order of circle, and the numbers are separated by commas.
```
###Input example:
```in
8 3 4
0 0 0
```
###Output example:
```out
6,2,7,4,3,5,1,8
```
###Title Source
Selected from openjudge website, online address: http://bailian.openjudge.cn/practice/3254/
answer:If there is no answer, please comment
```
N children sit around in a circle, and number 1, 2,..., n clockwise. The children numbered P count clockwise, from 1 to M. when they report to m, the child goes out of the circle, and then the next one counts from 1, and then goes out when they report to M. This is repeated until all the children are out of the circle. Please output the number of the child in the order of going out.
```
###Input format:
```
Each line is three integers separated by spaces, the first is n, the second is p, and the third is m (0 < m, n < 300). The last line is:
0 0 0
```
###Output format:
```
Output the numbers in the order of circle, and the numbers are separated by commas.
```
###Input example:
```in
8 3 4
0 0 0
```
###Output example:
```out
6,2,7,4,3,5,1,8
```
###Title Source
Selected from openjudge website, online address: http://bailian.openjudge.cn/practice/3254/
answer:If there is no answer, please comment