Task: Program Execution
Input (English): M, 4481, 1907, 6117, 381, 4375, U, Z, e, 8799, 147, 5235, 9603, d, R, 9947, T, 3125, 2757
Output (English): M, U, Z, e, d, R, T