#include <bits/stdc++.h>
using namespace std;
int main() {
  int result1, result2, result3, result4, result5;
  int remain1, remain2, remain3, remain4;
  long n;
  int total;
  cin >> n;
  result1 = n / 100;
  remain1 = n % 100;
  result2 = remain1 / 20;
  remain2 = remain1 % 20;
  result3 = remain2 / 10;
  remain3 = remain2 % 10;
  result4 = remain3 / 5;
  remain4 = remain3 % 5;
  result5 = remain4 / 1;
  total = result1 + result2 + result3 + result4 + result5;
  cout << total;
  return 0;
}
