#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ans = 0;
  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--;
    ans++;
  }
  cout << ans;
  return 0;
}
