Task: Program Execution
Input (English): L, 2871, R, 853, 5791, 5565, X, 6957, 8883, 4363, J, 9957, 8149, Q, O, m, 1165
Output (English): 2871, 853, 5791, 5565, 6957, 8883, 4363, 9957, 8149, 1165