#include <bits/stdc++.h>
using namespace std;
int main() {
  int arr[] = {1, 5, 10, 20, 100};
  int n, i, ans;
  scanf("%d", &n);
  ans = 0;
  for (i = 4; i >= 0; i--) {
    if (n >= arr[i]) {
      ans += n / arr[i];
      if (n % arr[i] == 0)
        break;
      else
        n -= ((n / arr[i]) * arr[i]);
    }
  }
  printf("%d\n", ans);
  return 0;
}
