Task: Program Execution
Input (English): b, n, q
Output (English): -1