#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int k = n;
  int c = 0;
  if (k >= 100) {
    c = k / 100 + c;
    k = k % 100;
  }
  if (k >= 20) {
    c = k / 20 + c;
    k = k % 20;
  }
  if (k >= 10) {
    c = k / 10 + c;
    k = k % 10;
  }
  if (k >= 5) {
    c = k / 5 + c;
    k = k % 5;
  }
  cout << c + k;
}
