#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, a[5] = {1, 5, 10, 20, 100}, count = 0;
  cin >> n;
  for (i = 4; i >= 0; i--) {
    count += n / a[i];
    n %= a[i];
  }
  cout << count;
  return 0;
}
