Task: Program Execution
Input (English): 7945 7739 6245 M 2901 5161 7543 3097 343 3561 R R 2995 7621 9769 2273 8041 1469 d 4731 4645 y 939 6069 v I V 5319 C 7125 w m 7835 B 1605
Output (English): 1, 2, 3, 5, 6, 7, 8, 9, 10, 13, 14, 15, 16, 17, 18, 20, 21, 23, 24, 28, 30, 33, 35