#include <bits/stdc++.h>
int main() {
  long n, i, a, b, c, d, e;
  scanf("%ld", &n);
  a = n / 100;
  n %= 100;
  b = n / 20;
  n %= 20;
  c = n / 10;
  n %= 10;
  d = n / 5;
  n %= 5;
  e = a + b + c + d + n;
  printf("%d", e);
  return 0;
}
