Task: Program Execution
Input (English): 3, 3, ['511', 'w', '2413', '1651', 'J', '5203', '5127', '463', '7939', 'I', '6075', '9617', '9495', '6369', '1971', '6521', '4115', 'O', '7773', '5667', 'N', '4201', '2391', '891', 'M', '9013']
Output (English): 2413, 5203, 7939, 9617, 1971, O, N, 891