Task: Program Execution
Input (English): [349, 572, 829, 104, 467, 181, 740, 859, 602, 50, 673, 743]
Output (English): [349, 829, 467, 181, 859, 673, 743]