PROGRAMMING:Switch light
###Task description
Suppose there are n lights (n is a positive integer no more than 5000), numbered from 1 to N in order, and all lights are on at the beginning; M individuals (M is a positive integer not greater than n) are also numbered from 1 to M.
The first person (No. 1) turns off all the lights, the second person (No. 2) turns on the light with the multiple of 2, and the third person (No. 3) turns on the light with the multiple of 3 in the opposite way (i.e. turns off the turned on light and turns on the turned off light). In accordance with the order of increasing the number, later people will do the same as No. 3 and reverse the number of their own lights.
I would like to ask: when the M personal operation, which lights are turned off, press from small to large output its number, with a comma interval.
###Input format:
Enter positive integers n and M separated by a single space.
###Output format:
Output the number of the off lights in sequence, separated by commas.
###Input example:
```in
10 10
```
###Output example:
```out
1,4,9
```
###Title Source
This topic is selected from openjudge website http://noi.openjudge.cn/ch0104/31/
answer:If there is no answer, please comment
Suppose there are n lights (n is a positive integer no more than 5000), numbered from 1 to N in order, and all lights are on at the beginning; M individuals (M is a positive integer not greater than n) are also numbered from 1 to M.
The first person (No. 1) turns off all the lights, the second person (No. 2) turns on the light with the multiple of 2, and the third person (No. 3) turns on the light with the multiple of 3 in the opposite way (i.e. turns off the turned on light and turns on the turned off light). In accordance with the order of increasing the number, later people will do the same as No. 3 and reverse the number of their own lights.
I would like to ask: when the M personal operation, which lights are turned off, press from small to large output its number, with a comma interval.
###Input format:
Enter positive integers n and M separated by a single space.
###Output format:
Output the number of the off lights in sequence, separated by commas.
###Input example:
```in
10 10
```
###Output example:
```out
1,4,9
```
###Title Source
This topic is selected from openjudge website http://noi.openjudge.cn/ch0104/31/
answer:If there is no answer, please comment