Task: Program Execution
Input (English): q, 8243, 1863, x, 1749, r, 8577, 6989
Output (English): q, r, x