#include <bits/stdc++.h>
using namespace std;
template <typename T>
void swap(T *a, T *b) {
  auto *temp = b;
  b = a;
  a = temp;
}
void solve(int t) {
  int n, ans = 0;
  cin >> n;
  int notes[] = {100, 20, 10, 5, 1};
  for (int e : notes) {
    ans = ans + n / e;
    n = n - (n / e) * e;
  }
  cout << ans << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t, i = 0;
  t = 1;
  while (t--) {
    solve(++i);
  }
  return (0);
}
