Task: Program Execution
Input (English): 287, 7529, 5641, Y, 8971, 3103, x, 8761, F, d, q, 2991
Output (English): Y, x, F, d, q, 287, 7529, 5641, 8971, 3103, 8761, 2991