Task: Program Execution
Input (English): 8723, q, 4561, n, 4987, 7031, 8873
Output (English): 8723, 17, 4561, 14, 4987, 7031, 8873