Task: Program Execution
Input (English): [337, 510, 770, 17, 584, 159, 815, 584, 235, 590, 582, 2, 990, 299, 296, 948, 971, 367, 972]
Output (English): [337, 17, 2, 971, 367]