Task: Program Execution
Input (English): n, a, 483, 159, 111
Output (English): 1, 3, 4, 5, 8, 9