Task: Program Execution
Input (English): o, 2863, 4571, 5089, M, i, Z
Output (English): 2863, 4571, 5089