Task: Program Execution
Input (English): i, 289, n, 231, 223, 423, d
Output (English): 1, 2, 3, 4, 8, 9