Task: Program Execution
Input (English): P, T, 9547, 3447, Q, 9817, 2011, x, 3405, 3159, r, O, 4339, 9999
Output (English): P, T, Q, x, r, O