Task: Program Execution
Input (English): N 2945 981 v 6041 3021 4129 9225 w G S 8647 3185 j a y D a v C U 291 7639 5139 q 9767 R X 6831 3603 j 65 4845 P 3287 R 2771 9191 J 7489
Output (English): 1, 4, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 25, 27, 28, 31, 34, 36, 39