Task: Program Execution
Input (English): 3289, r, J, 4133, 5825, 7833, Q
Output (English): r, J, Q, 3289, 4133, 5825, 7833