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