Task: Program Execution
Input (English): 5, 5, ['m', '5571', 'M', '8543', '2641']
Output (English): 2641