#include <bits/stdc++.h>
using namespace std;
int main() {
  int num;
  cin >> num;
  int counter = 0;
  while (num >= 100) {
    num -= 100;
    counter++;
  }
  while (num >= 20) {
    num -= 20;
    counter++;
  }
  while (num >= 10) {
    num -= 10;
    counter++;
  }
  while (num >= 5) {
    num -= 5;
    counter++;
  }
  while (num >= 1) {
    num -= 1;
    counter++;
  }
  cout << counter;
  return 0;
}
