Task: Program Execution
Input (English): 221, 67, 307, i, d, 301
Output (English): 0, 1, 2, 3, 6, 7