#include <bits/stdc++.h>
using namespace std;
void fast() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
}
int main() {
  long long int i, j, k, n, m, a, b, c, d, p, q, r, l, x, t = 1;
  long long int sum, counted, ans = 0;
  string s;
  cin >> n;
  while (n >= 100) {
    n -= 100;
    ans++;
  }
  while (n >= 20) {
    n -= 20;
    ans++;
  }
  while (n >= 10) {
    n -= 10;
    ans++;
  }
  while (n >= 5) {
    n -= 5;
    ans++;
  }
  while (n >= 1) {
    n -= 1;
    ans++;
  }
  cout << ans;
  return 0;
}
