Task: Program Execution
Input (English): q, 7911, 8399, B
Output (English): 2, 3