Task: Program Execution
Input (English): 10, 12, ['F', 'E', '3331', '8549', '2867', 'W', '4519', 'K', '4869', '4789', '8241', '8035', '3287']
Output (English): 4789, 8241, 8035