Task: Program Execution
Input (English): M, 2345, 5037, z, 4691, R, r, 4969, X, 8819, 1473
Output (English): 2345, 5037, 4691, 4969, 8819, 1473