Task: Program Execution
Input (English): 8865, M, Q, X, 8383, 8661, 6183
Output (English): M, Q, X