Task: Program Execution
Input (English): 7835, Q, 3129
Output (English): 2