Task: Program Execution
Input (English): f, 1789, 4979, 8655, 5565
Output (English): 20988