Task: Program Execution
Input (English): 6, 7, ['2983', '9241', '987', '4017', 'W', 'M', '3809']
Output (English): M, 3809