Task: Program Execution
Input (English): [594, 317, 197, 104, 717, 732, 743]
Output (English): [317, 197, 743]