Task: Program Execution
Input (English): 4139, 8247, R, L, 1465, 6361, o, y, x, 2937, 2277, 4035, 2071, F, X
Output (English): 4139, 8247, 1465, 6361, 2937, 2277, 4035, 2071