Task: Program Execution
Input (English): 475, 19, k, 307, 417
Output (English): 0, 1, 3, 4, 5, 7, 9