#include <bits/stdc++.h>
using namespace std;
int main() {
  long n, cnt = 0;
  cin >> n;
  while (n != 0) {
    if (n / 100 != 0) {
      cnt += n / 100;
      n %= 100;
    } else if (n / 20 != 0) {
      cnt += n / 20;
      n %= 20;
    } else if (n / 10 != 0) {
      cnt += n / 10;
      n %= 10;
    } else if (n / 5 != 0) {
      cnt += n / 5;
      n %= 5;
    } else {
      cnt += n;
      n = 0;
    }
  }
  cout << cnt;
  return 0;
}
