Task: Program Execution
Input (English): n, 113, 387, 151, 11, 473, m
Output (English): 1, 3, 4, 5, 7, 8