Task: Program Execution
Input (English): N 13 z 1679 767 Y u R 8507 1487 P W 29 7641 P h N W 843 Y m T 5331 9187 7577 3509 q 9421 4033 h k 2249 c Y 6207 1025
Output (English): 2, 4, 5, 9, 10, 13, 14, 19, 23, 24, 25, 26, 28, 29, 32, 35, 36