Task: Program Execution
Input (English): n, 83, 179, m
Output (English): 1, 3, 7, 8, 9