Task: Program Execution
Input (English): 9589, 5217, 4529, 5937, 9091, 3457, d, 387
Output (English): 1, 2, 3, 4, 5, 6, 8