#include <bits/stdc++.h>
using namespace std;
int a[5] = {100, 20, 10, 5, 1};
long long n, k, ans;
int main() {
  cin >> n;
  k = 0;
  for (; n;) {
    if (n >= a[k]) {
      ans++;
      n -= a[k];
    } else
      k++;
  }
  cout << ans;
}
