Task: Program Execution
Input (English): 3871, 6723, 6247, 4301, R, 4949, X, f, 2395
Output (English): 3871, 6723, 6247, 4301, 4949, 2395