Task: Program Execution
Input (English): d, 145, 353, n, 303
Output (English): 0, 1, 3, 4, 5