Task: Program Execution
Input (English): c, 8841, M, Z, 1563, 103, H, 9017, Q, 2015, 1021, 8017, 5515, N, 2177
Output (English): 38269