Task: Program Execution
Input (English): 2, 3, ['V', '1207', '2861', 'S', 'L']
Output (English): 2861, 1207