Task: Program Execution
Input (English): 5, 2, ['6789', '8937', '1707', 'B', '3277', 'g', '8971', '8989', '1005', '7385', '8447', '6215', '731', '9397', 'W', '595', '8313', '9271', '2971', '1259', '8815', '7493', '4929', 'f', '9535']
Output (English): 3277, 8971, 1005, 8447, 731, W, 8313, 2971, 8815, 4929, 9535