Task: Program Execution
Input (English): 4731, 1867, 9563, 3711, N, x, o, 1999, 4235, L, p, 781
Output (English): 4731, 1867, 9563, 3711, 1999, 4235, 781