Task: Program Execution
Input (English): f, G, x, B
Output (English): 0