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