Task: Program Execution
Input (English): x, 389, 173, 127
Output (English): 1, 2, 3, 7, 8, 9