Task: Program Execution
Input (English): 5965, 3723, O, 1269, 9109, M
Output (English): O, M, 5965, 3723, 1269, 9109