#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int x1, x2, k, b, frs, usd, i, a, p, q, r, s, c, max, m, j, f, n,
      lt, sm, ct;
  int A[5] = {100, 20, 10, 5, 1};
  cin >> n;
  ct = 0;
  sm = n;
  for (i = 0; i < 5; i++) {
    ct += sm / A[i];
    sm %= A[i];
    if (sm == 0) break;
  }
  cout << ct;
  return 0;
}
