Task: Program Execution
Input (English): q, g, i, y
Output (English): -1