Task: Program Execution
Input (English): 5767, 4693, 5727, 5739, q, 1873, M, c
Output (English): 5767, 4693, 5727, 5739, 1873