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