Task: Program Execution
Input (English): 5, 5, ['V', 'I', '9243', '3719', '4823', '7791']
Output (English): 3284