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