Task: Program Execution
Input (English): a, n, f, 385, q
Output (English): 3, 5, 8