Task: Program Execution
Input (English): n, 343, r, f, 155, n, 499
Output (English): 1, 3, 4, 5, 9