#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  long long count = 0;
  cin >> n;
  int a[5] = {1, 5, 10, 20, 100};
  int f = a[4];
  int i = 3;
  while (n) {
    while (n - f >= 0) {
      n -= f;
      count++;
    }
    f = a[i--];
  }
  cout << count;
  return 0;
}
