Task: Program Execution
Input (English): M 2609 7499 9325 B 7337 C 6841 1299 5415 347 j j 6297 T 3541 q 3065 k B L 947 763 B 5759 3779 P n s p
Output (English): 1, 5, 7, 12, 13, 15, 17, 19, 20, 21, 24, 27, 28, 29, 30