#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, n, a, b, c, d, l, m, p, q;
  scanf("%d", &n);
  a = n / 100;
  p = n % 100;
  b = p / 20;
  q = p % 20;
  d = q / 10;
  m = q % 10;
  c = m / 5;
  l = m % 5;
  printf("%d\n", (a + b + c + d + l));
  return 0;
}
