Task: Program Execution
Input (English): f, s, Z, 5015, 1863, J, 5345, T, 5547, 6067, M, 9877, g, Q, O, M, 5003, 2623
Output (English): 41340