Task: Program Execution
Input (English): M, 9641, U, 4615, C, 8813, Q
Output (English): M, U, C, Q