Task: Program Execution
Input (English): 5, 5, ['3789', '919', 'm', '5477', 'M', 'e', '7967', '3877']
Output (English): M