Task: Program Execution
Input (English): M, G, 9067, 4781, c, 6761, E, 1521, O, 8987, R
Output (English): 9067, 4781, 6761, 1521, 8987