Task: Program Execution
Input (English): Q, 6691, 3461, c, f, X, 7833, S, b, W, 9283, 7069, 3251, G, 123, Z
Output (English): 6691, 3461, 7833, 9283, 7069, 3251, 123