#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int c = 0, x = 0, a[5] = {100, 20, 10, 5, 1}, i = 0;
  x = a[0];
  while (n > 0) {
    if (n >= x) {
      n = n - x;
      c++;
    } else {
      i++;
      x = a[i];
    }
  }
  cout << c;
}
