#include <bits/stdc++.h>
int main() {
  int balance, x1, x5, x10, x20, x100, r, note;
  scanf("%d", &balance);
  x100 = balance / 100;
  r = (balance % 100);
  x20 = r / 20;
  r = (r % 20);
  x10 = r / 10;
  r = (r % 10);
  x5 = r / 5;
  r = (r % 5);
  x1 = r;
  note = x1 + x5 + x10 + x20 + x100;
  printf("%d", note);
  return 0;
}
