#include <bits/stdc++.h>
using namespace std;
int Test() {
  int n, o = 0;
  cin >> n;
  while (n > 0) {
    if (n >= 100) {
      o++;
      n -= 100;
    } else if (n >= 20) {
      o++;
      n -= 20;
    } else if (n >= 10) {
      o++;
      n -= 10;
    } else if (n >= 5) {
      o++;
      n -= 5;
    } else if (n > 1) {
      o++;
      n -= 1;
    } else {
      o++;
      n--;
    }
  }
  cout << o;
  return 0;
}
string checkPangram(string& str) {
  vector<bool> mark(26, false);
  int index;
  for (int i = 0; i < str.length(); i++) {
    if ('A' <= str[i] && str[i] <= 'Z')
      index = str[i] - 'A';
    else if ('a' <= str[i] && str[i] <= 'z')
      index = str[i] - 'a';
    else
      continue;
    cout << "this is index   :    " << index << "      <<<<<< ";
    mark[index] = true;
  }
  for (int i = 0; i <= 25; i++)
    if (mark[i] == false) return "NO";
  return "YES";
}
int main() {
  Test();
  return 0;
}
