Task: Program Execution
Input (English): Q, 3791, 7175, u
Output (English): 2