#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
const int imax = 2147483647;
const int imin = -2147483647;
const long long lmax = 9223372036854775807;
const long long lmin = -9223372036854775807;
long long power(long long a, long long b, long long m) {
  long long p = 1;
  while (b) {
    if (b & 1) p = (p * a) % m;
    b >>= 1;
    a = (a * a) % m;
  }
  return (p % m);
}
long long coins[5] = {100, 20, 10, 5, 1};
long long n, ans = 0;
void minCoins() {
  for (long long i = 0; i < 5; i++) {
    if (coins[i] <= n) {
      while (n >= coins[i]) {
        ans++;
        n -= coins[i];
      }
    }
  }
  cout << ans;
}
int main() {
  cin >> n;
  minCoins();
  return 0;
}
