#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, c = 0;
  cin >> n;
  c += n / 100;
  n = n % 100;
  c += n / 20;
  n = n % 20;
  c += n / 10;
  n = n % 10;
  c += n / 5;
  n = n % 5;
  c += n / 1;
  cout << c;
  return 0;
}
