Task: Program Execution
Input (English): V, 8717, 7381, 257, i
Output (English): 16355