Task: Program Execution
Input (English): f, 333, 471, x, 405
Output (English): 0, 1, 3, 4, 5, 7