Task: Program Execution
Input (English): 2, ['D', '1849', 'X', 'E']
Output (English): D, 1849