Task: Program Execution
Input (English): [577, 276, 187, 153, 394, 509]
Output (English): [577, 509]