Task: Program Execution
Input (English): f, x, 347
Output (English): 3, 4, 7