#include <bits/stdc++.h>
int n;
int main() {
  scanf("%d", &n);
  int p = 0;
  if (n >= 100) p += n / 100, n = n - n / 100 * 100;
  if (n >= 20) p += n / 20, n = n - n / 20 * 20;
  if (n >= 10) p += n / 10, n = n - n / 10 * 10;
  if (n >= 5) p += n / 5, n = n - n / 5 * 5;
  if (n >= 1) p += n / 1;
  printf("%d\n", p);
  return 0;
}
