#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, count = 0;
  cin >> x;
  while (x > 0) {
    if (x - 100 > -1) {
      x = x - 100;
      count++;
      continue;
    }
    if (x - 20 > -1) {
      x = x - 20;
      count++;
      continue;
    }
    if (x - 10 > -1) {
      x = x - 10;
      count++;
      continue;
    }
    if (x - 5 > -1) {
      x = x - 5;
      count++;
      continue;
    }
    if (x - 1 > -1) {
      x = x - 1;
      count++;
      continue;
    }
  }
  std::cout << count << std::endl;
  return 0;
}
