#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, mod = 1, cnt = 0, i, min;
  cin >> n;
  vector<int> v{1, 5, 10, 20, 100};
  while (n) {
    min = INT_MAX;
    for (i = 0; i < 5; ++i) {
      if (n / v[i] >= 1) {
        if (min > n / v[i]) {
          min = n / v[i];
          mod = n % v[i];
        }
      }
    }
    cnt += min;
    n = mod;
  }
  cout << cnt;
}
