Task: Program Execution
Input (English): [509, 27, 107, 266, 451, 756, 599, 869, 179, 938, 929, 311, 673, 734, 689, 977]
Output (English): [509, 107, 599, 179, 929, 311, 673, 977]