Task: Program Execution
Input (English): Q, 241, 2695, U
Output (English): 2