Task: Program Execution
Input (English): H, V, 9649, 977, G, b, r, n, a, o, 5107, T, 8017, 7903, o, 2009, P, 4289, W, 2931
Output (English): 40882