#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(nullptr);
  ios_base::sync_with_stdio(false);
  int money, solution = 0;
  int a[] = {100, 20, 10, 5, 1};
  cin >> money;
  for (int i = 0; i < 5; i++) {
    solution += money / a[i];
    money = money % a[i];
  }
  cout << solution << endl;
}
