EasyRating 800
Fewest Notes
Pay amount n using Bangladeshi notes 1000, 500, 200, 100, 50, 20, 10, 5, 2, 1 Tk. Print the minimum number of notes.
Input
One integer.
Output
A count.
Sample 1
Input
1888
Output
10
Sample 2
Input
0
Output
0
Output appears here