Task: Program Execution
Input (English): 5, 7, ['8439', '9461', '1069', 'h', '2879', 'M', 'N', '6075', '117', '997', '6591', 'C', 'r', 'B', '1157', '9489', '8003']
Output (English): 2879, M, N