Task: Program Execution
Input (English): Q, 4031, 7993
Output (English): 1