#include <bits/stdc++.h>
using namespace std;
const int maxn = 10000;
const int inf = 0x3f3f3f;
int n, da[5] = {100, 20, 10, 5, 1}, ans;
int main() {
  scanf("%d", &n);
  for (int i = 0; i < 5; i++) {
    while (n - da[i] >= 0) n -= da[i], ans++;
  }
  printf("%d\n", ans);
}
