Task: Program Execution
Input (English): 8357, U, 2785, 4319, 9249, 567, 1995, M, 8795, T, 2235, 8399, q, 1531, 7219
Output (English): 8357, 2785, 4319, 9249, 567, 1995, 8795, 2235, 8399, 1531, 7219