Task: Program Execution
Input (English): 2, 6, ['4087', '8447', '2229', 'N', '5339', '5207', 'k', '5431', '8903', '4245', '2821', '1181', 'N']
Output (English): 8447, 5431