Task: Program Execution
Input (English): n, 51, x, 329, b, f, l, i, s, 399
Output (English): 1, 2, 3, 5, 9