#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  vector<int> deno{1, 5, 10, 20, 100};
  int count = 0;
  for (int i = 4; i >= 0; i--) {
    if (n == 0) {
      break;
    } else {
      if (n >= deno[i]) {
        count = count + int((n / deno[i]));
        n = n % deno[i];
      } else {
        continue;
      }
    }
  }
  cout << count;
  return 0;
}
