Task: Program Execution
Input (English): a, f, p, a, f, 1, 153, 415, 103, g, x
Output (English): 0, 1, 3, 4, 5