Task: Program Execution
Input (English): [698, 846, 789, 347, 514, 521, 540]
Output (English): [347, 521]