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