Task: Program Execution
Input (English): f, i, r, 4643, u, 5915, D
Output (English): 6, 9, 18, 4643, 21, 5915, 4