Task: Program Execution
Input (English): i, 1407, 5717, p, 8403, F
Output (English): 1, 4, 6