#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> coins = {1, 5, 10, 20, 100};
  int amount;
  cin >> amount;
  int minCoins = 0, numOfCoins = coins.size();
  for (int curr = numOfCoins - 1; curr >= 0; curr--) {
    int currCoin = coins[curr];
    if (amount >= currCoin) {
      int coinsAdded = amount / currCoin;
      minCoins += coinsAdded;
      amount -= currCoin * coinsAdded;
    }
  }
  cout << minCoins << endl;
  return 0;
}
