Task: Program Execution
Input (English): 7137, R, k, 9301, 6291, 6241, 1281, 4909, 1847, k, 9879, 9323, X
Output (English): 7137, 9301, 6291, 6241, 1281, 4909, 1847, 9879, 9323