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