#include <bits/stdc++.h>
using namespace std;
int min_bills(int num) {
  if (num % 100 == 0) {
    return num / 100;
  } else {
    int count = 0;
    while (num >= 100) {
      num -= 100;
      count++;
    }
    while (num >= 20) {
      num -= 20;
      count++;
    }
    while (num >= 10) {
      num -= 10;
      count++;
    }
    while (num >= 5) {
      num -= 5;
      count++;
    }
    while (num >= 1) {
      num -= 1;
      count++;
    }
    return count;
  }
}
int main() {
  int num;
  cin >> num;
  cout << min_bills(num) << endl;
  return 0;
}
