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