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