Task: Program Execution
Input (English): Q, n, x
Output (English): -1