Task: Program Execution
Input (English): 3, 8, ['7589', '8415', 'f', '2941', '8247', 'J', '1459', 'Y', 'R', 'm', '6261', '7413', 'n', '5331', '7223', '4385', '2407', '1459', '5421', 'B']
Output (English): f, 6261, 5421