#include <bits/stdc++.h>
using namespace std;
int total(int n) {
  int total = 0;
  if (n >= 100) {
    total += n / 100;
    n %= 100;
  }
  if (n >= 20) {
    total += n / 20;
    n %= 20;
  }
  if (n >= 10) {
    total += n / 10;
    n %= 10;
  }
  if (n >= 5) {
    total += n / 5;
    n %= 5;
  }
  if (n >= 1) {
    total += n;
  }
  return total;
}
int main() {
  int n;
  cin >> n;
  cout << total(n) << endl;
}
