Task: Program Execution
Input (English): 317, 199, 267, 475, s
Output (English): 1, 2, 3, 4, 5, 6, 7, 9