Task: Program Execution
Input (English): n, 247
Output (English): 2, 4, 7