1 | #include <iostream> |
2 | using namespace std; |
3 | |
4 | int main() { |
5 | int n; |
6 | cin>>n; |
7 | int numberOfBills=0; |
8 | numberOfBills+=n/100; |
9 | n%=100; |
10 | numberOfBills+=n/20; |
11 | n%=20; |
12 | numberOfBills+=n/10; |
13 | n%=10; |
14 | numberOfBills+=n/5; |
15 | n%=5; |
16 | numberOfBills+=n; |
17 | cout<<numberOfBills; |
18 | } |