#include<bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int sum = 0;
sum += n/100;
n %= 100;
sum += n/20;
n %= 20;
sum += n/10;
n %= 10;
sum += n/5;
n %= 5;
sum += n;
cout << sum;
// your code goes here
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewoJaW50IG47CgljaW4gPj4gbjsKCWludCBzdW0gPSAwOwoJCglzdW0gKz0gbi8xMDA7CgluICU9IDEwMDsKCQoJc3VtICs9IG4vMjA7CgluICU9IDIwOwoJCglzdW0gKz0gbi8xMDsKCW4gJT0gMTA7CgkKCXN1bSArPSBuLzU7CgluICU9IDU7CgkKCXN1bSArPSBuOwoJCgljb3V0IDw8IHN1bTsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCXJldHVybiAwOwp9