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