Task: Program Execution
Input (English): [587, 382, 971, 126, 349, 982]
Output (English): [587, 971, 349]