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