Task: Program Execution
Input (English): u, v, f, q
Output (English): -1