Task: Program Execution
Input (English): 3, 6, ['5807', '4573', '6473', '8445', '9837', 'L', '5075', 'K', 'x', 'a', 'd', 'M', 'M']
Output (English): L, 9837, 8445, 6473