Task: Program Execution
Input (English): 5039, O, A, 5619, P, 8261, 5983, 1779, M, 5919, 3361, 6323
Output (English): O, A, P, M, 5039, 5619, 8261, 5983, 1779, 5919, 3361, 6323