Task: Program Execution
Input (English): q, t, 6221, 1671
Output (English): 2