Task: Program Execution
Input (English): G 6175 H 2167 w Q 9353 G i n 6955 M 4917 1411 1597 F M M 7957 3985 F 9335 X 8891 3417 Z 2509 7525 u 495 3203 5209 6691 1409 7781 1323 t 493 Q
Output (English): 1, 3, 5, 6, 8, 9, 10, 12, 16, 17, 18, 21, 23, 26, 29, 37, 39