Task: Program Execution
Input (English): 5097, F, l, 319, h, 4637, 6699, A, l, M, D, 9695, F, 289, o, 8981
Output (English): 35717