Task: Program Execution
Input (English): V, 699, 8563, n, 3683, 2087
Output (English): 15032