Task: Program Execution
Input (English): 2, 2, ['n', '9597', '8777', 'T', '5723', 'E']
Output (English): 9597