Task: Program Execution
Input (English): 5741 707 5551 367 P 1249 d q 7013 b 3697 S v t T 1055 7061 v m 957 5771 l 4153 M 5671 9187 R 6739 5083
Output (English): 1, 2, 3, 4, 6, 9, 11, 16, 17, 20, 21, 23, 25, 26, 28, 29