Task: Program Execution
Input (English): f, o, 4997, 1183, a, m, 7627, 5971, e, 4963
Output (English): 24741