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