#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a = 100, c = 20, d = 10, e = 5;
  long long int note, n, rem;
  while (scanf("%lld", &n) != EOF) {
    note = n / a;
    rem = n % a;
    note = note + (rem / c);
    rem = rem % c;
    note = note + (rem / d);
    rem = rem % d;
    note = note + (rem / e) + (rem % e);
    cout << note << endl;
  }
}
