Task: Program Execution
Input (English): n, 119, 299, 447, 369, h, 457
Output (English): 1, 2, 3, 4, 5, 6, 7, 9