Task: Program Execution
Input (English): [31, 536, 613, 263, 203, 477, 152, 978, 572, 307]
Output (English): [31, 613, 263, 307]