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