Task: Program Execution
Input (English): [347, 787, 197, 629, 827, 109, 31, 639, 694, 800, 157, 279, 523, 718]
Output (English): [347, 787, 197, 827, 109, 31, 157, 523]