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