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