Task: Program Execution
Input (English): 1827, X, 6135, 9965, b, D, 5633, 5685, i, 7247, x, Z, 6271, 3151, Q, D, D, 4171, 8313
Output (English): X, b, D, i, x, Z, Q, D, D, 1827, 6135, 9965, 5633, 5685, 7247, 6271, 3151, 4171, 8313