Task: Program Execution
Input (English): a, 109, b, a, 207
Output (English): 0, 1, 2, 7, 9