Task: Program Execution
Input (English): 1129, 9905, 2643, 2241, q
Output (English): 1129, 9905, 2643, 2241, 17