Task: Program Execution
Input (English): 3959, 8719, q
Output (English): 12678