Task: Program Execution
Input (English): 1711, S, O, 953, A, 99, w, 2787, g, w, 4871, o, b, 9587, 4419, s, U, D, 2269, 155, 5659, 5105, M, 2275
Output (English): 1711, 953, 99, 2787, 4871, 9587, 4419, 2269, 155, 5659, 5105, 2275