Task: Program Execution
Input (English): 2, ['6475', '9147', 'M', '6359']
Output (English): 6475, M