Task: Program Execution
Input (English): 9069, 8333, H, 2049, 8051, L, 2749, 8819, 2883, 9317, M, 6515
Output (English): 57785