Task: Program Execution
Input (English): M 3405 6037 3617 H w 2269 2115 953 1699 4279 3883 307 q N 8189 9589 3265 q G 4015 J V 37 1663
Output (English): 2, 3, 4, 7, 8, 9, 10, 11, 12, 13, 16, 17, 18, 21, 24, 25