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