Task: Program Execution
Input (English): 5273, M, 4351, 3245, k, 1395
Output (English): 5273, 4351, 3245, 1395