Task: Program Execution
Input (English): V, 3081, H, 8363, 581, 3667, l, 8173, T, w, 9943, 1791, G, 8869, 6081
Output (English): 50549