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