Task: Program Execution
Input (English): 57, 345, 65, d, 9, 313
Output (English): 1, 3, 4, 5, 6, 7, 9