Task: Program Execution
Input (English): 3, 5, ['V', '3199', 'r', '8195', 'g', '6199']
Output (English): 8195