Task: Program Execution
Input (English): [718, 882, 311, 97, 31, 646, 146, 971]
Output (English): [311, 97, 31, 971]