Task: Program Execution
Input (English): n, 117, f, 219
Output (English): 1, 2, 7, 9