Task: Program Execution
Input (English): Z, 2967, x, 9255, 2625, L, A, n, 291, a, 9471, 4331, 5743, M, O, j, 583, 927, b, O
Output (English): Z, x, L, A, n, a, M, O, j, b, O, 2967, 9255, 2625, 291, 9471, 4331, 5743, 583, 927