Task: Program Execution
Input (English): Q, 9753, 6805, 3121, 2395, 2583, x, 2963, 9131, c
Output (English): 17, 9753, 6805, 3121, 2395, 2583, 24, 2963, 9131, 3