Task: Program Execution
Input (English): 1, 1, ['2307', 'V', '8315', 'P', '2597']
Output (English): 2307