Task: Program Execution
Input (English): P m 3189 W 3609 4827 5581 9003 C 3279 921 2565 S V 587 8801 6143 2153 3763 969 R 9323 8167 6083 6565 6725 8677 9411 r 7691 x J M
Output (English): 3, 5, 6, 7, 8, 10, 11, 12, 15, 16, 17, 18, 19, 20, 22, 23, 24, 25, 26, 27, 28, 30