Task: Program Execution
Input (English): 4, 4, ['v', '1297', 'V', '9707', '6055', '2047', '6007', '4251']
Output (English): 7079