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