#include <bits/stdc++.h>
using namespace std;
int n;
int nota[6] = {100, 20, 10, 5, 1};
int main() {
  cin >> n;
  int cont = 0;
  for (int i = 0; i < 5; i++) {
    if (nota[i] > n) continue;
    while (true) {
      if (nota[i] > n) break;
      n -= nota[i];
      cont++;
    }
  }
  cout << cont << "\n";
}
