Task: Program Execution
Input (English): 4, 10, ['3487', '1297', '1035', '3245', '6029', '3449', '513', 'z', '2749', 'd', 'm', '8749']
Output (English): 3245, 6029, 3449, 513, z, 2749, d