Task: Program Execution
Input (English): [5, 6, 7, 3, 6, 4, 7, 2, 7]
Output (English): [5, 3, 4, 2]