Task: Program Execution
Input (English): Q, 2639, X, Q, J, 9345, 2887, 7679
Output (English): Q, X, Q, J