#include <bits/stdc++.h>
int main() {
  int c[] = {1, 5, 10, 20, 100};
  int n = sizeof(c) / sizeof(c[0]);
  int m;
  scanf("%d", &m);
  int rlt = 0;
  for (int i = n - 1; i >= 0; --i) {
    rlt += m / c[i];
    m %= c[i];
  }
  printf("%d\n", rlt);
  return 0;
}
