#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long n;
  cin >> n;
  int s = 0, a;
  a = n / 100;
  n = n % 100;
  s += a;
  if (n != 0) {
    a = n / 20;
    n %= 20;
    s += a;
    if (n != 0) {
      a = n / 10;
      n %= 10;
      s += a;
      if (n != 0) {
        a = n / 5;
        n %= 5;
        s += a;
        if (n != 0) s += n;
      }
    }
  }
  cout << s;
}
