Make 1000 from [1, 5 ,7] using greedy

Why is the answer NO for this question? Should it not be YES, as a greedy approach does give us the min number of coins needed.