Task: Program Execution
Input (English): n, i, 447, i, 131
Output (English): 1, 3, 4, 7