Task: Program Execution
Input (English): 5, 5, ['4649', '9657', '623', '6231', 'M']
Output (English): M