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