Task: Program Execution
Input (English): 3, 3, ['E', '1285', '4137', 'T', '6749']
Output (English): 4137