Task: Program Execution
Input (English): Q, 9979, 5845
Output (English): 15824