Task: Program Execution
Input (English): m 5519 p f 7245 521 4037 8487 M M G 557 6373 R 9231 W 2191 m 8355 W 3053 3217 4763 N X 5157 c 1645 Q 7419 6019 7563 6871 t R 5347 845 6661
Output (English): 2, 5, 6, 7, 8, 12, 13, 15, 17, 19, 21, 22, 23, 26, 28, 30, 31, 32, 33, 36, 37, 38