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