Task: Program Execution
Input (English): 873, 7471, 1973, x, K, o, 5667, W, 2357, 4145, 7869, O, P, 7239
Output (English): x, K, o, W, O, P