#include <bits/stdc++.h>
using namespace std;
int main() {
  long int n, number_of_bills{};
  cin >> n;
  vector<int> denominations{100, 20, 10, 5, 1};
  for (int i = 0; i < denominations.size(); i++) {
    number_of_bills += n / denominations.at(i);
    n %= denominations.at(i);
  }
  cout << number_of_bills;
  return 0;
}
