Task: Program Execution
Input (English): n, B, F, 6705, e
Output (English): 14, 2, 6, 6705, 5