Task: Program Execution
Input (English): V, C, a, 9759, 3709, 8347, 9519, Z
Output (English): 31334