Task: Program Execution
Input (English): V, G, A, 315, C, 4719, 9275, L, 7259, 631, 9671, 1631, 3241, 3985
Output (English): 40727