#include <bits/stdc++.h>
using namespace std;
long long t = 1;
void solve() {
  long long int n, c = 0, t = 0;
  cin >> n;
  c = c + n / 100;
  n = n % 100;
  if (n / 20 >= 1) {
    t = n / 20;
    c += n / 20;
    n = n - t * 20;
    t = 0;
  }
  if (n / 10 >= 1) {
    t = n / 10;
    c += t;
    n = n - t * 10;
    t = 0;
  }
  if (n / 5 >= 1) {
    t = n / 5;
    c += t;
    n -= t * 5;
    t = 0;
  }
  if (n >= 1) {
    t = n;
    c += t;
    t = 0;
  }
  cout << c;
}
int main() {
  int i;
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  while (t--) solve();
  return 0;
}
