#include <bits/stdc++.h>
int main() {
  int num, count = 0;
  scanf("%d", &num);
  while (num != 0) {
    if (num >= 100) {
      num -= 100;
    } else if (num >= 20) {
      num -= 20;
    } else if (num >= 10) {
      num -= 10;
    } else if (num >= 5) {
      num -= 5;
    } else if (num >= 1) {
      num -= 1;
    }
    count++;
  }
  printf("%d", count);
  return 0;
}
