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