#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  int arr[5];
  arr[0] = 1;
  arr[1] = 5;
  arr[2] = 10;
  arr[3] = 20;
  arr[4] = 100;
  long long int i = 4;
  long long int val = 0;
  while (n != 0) {
    val += n / arr[i];
    n = n % arr[i];
    i -= 1;
  }
  cout << val;
}
