Task: Program Execution
Input (English): [971, 65, 784, 827, 601, 324, 977]
Output (English): [971, 827, 601, 977]