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