Task: Program Execution
Input (English): G, 3129, b, u, 6425, g, L, N, 331, U, 5615, Q, j, 5521, 9367
Output (English): 30388