#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[] = {1, 5, 10, 20, 100};
  int i, temp = 0, inp, j;
  for (i = 4; i >= 0; i--) {
    if (n > 0) {
      while (n >= a[i]) {
        n = n - a[i];
        ++temp;
      }
    }
  }
  cout << temp;
}
