Task: Program Execution
Input (English): x, r, y, n, q, p
Output (English): -1