#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int den[] = {100, 20, 10, 5, 1};
  int n, i = 0, count = 0;
  cin >> n;
  while (n > 0) {
    while (den[i] <= n) {
      n -= den[i];
      count++;
    }
    i++;
  }
  cout << count << "\n";
  return 0;
}
