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