Task: Program Execution
Input (English): [307, 573, 798, 509, 827, 661, 691, 593, 631]
Output (English): [307, 509, 827, 661, 691, 593, 631]