Task: Program Execution
Input (English): q, 1335, 1949, 645, 8133, B
Output (English): 4