Task: Program Execution
Input (English): 291, 101, y, 421, 197
Output (English): 0, 1, 2, 4, 7, 9