Task: Program Execution
Input (English): 3, ['1047', '3551', '8231', '2465', 'w', '2887', '3629', 'w', '8803', 'l']
Output (English): 1047, 3551, 8231