#include <bits/stdc++.h>
using namespace std;
int main() {
  int lot, cat = 0;
  cin >> lot;
  while (lot > 0) {
    if (lot > 100 || lot % 100 == 0) {
      lot -= 100;
      cat++;
    } else if (lot % 20 == 0) {
      lot -= 20;
      cat++;
    } else if (lot % 10 == 0) {
      lot -= 10;
      cat++;
    } else if (lot % 5 == 0) {
      lot -= 5;
      cat++;
    } else {
      lot -= 1;
      cat++;
    }
  }
  cout << cat << endl;
  return 0;
}
