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