Task: Program Execution
Input (English): P 7099 P 3721 999 5307 c o 9545 M 2303 Q 9993 5561 c S 6627 R G r 1187 R 7959 F w 8445
Output (English): 1, 3, 7, 8, 10, 12, 15, 16, 18, 19, 20, 22, 24, 25