Task: Program Execution
Input (English): H, O, V, f, 1911, 3097, Q, 7357, B, 6005, 6603
Output (English): 24973