Task: Program Execution
Input (English): 1421, 5033, 9117, k, 5601, 7989, M, F, 3739, 9559, k, p, 1943, D, v, 6025, b, 2479, M, 4421, 1359, 6709, R, 1551
Output (English): 1421, 5033, 9117, 5601, 7989, 3739, 9559, 1943, 6025, 2479, 4421, 1359, 6709, 1551