Task: Program Execution
Input (English): 23, 307, 471
Output (English): 0, 1, 2, 3, 4, 7