Task: Program Execution
Input (English): A, q
Output (English): 2