#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, ans = 0;
  cin >> n;
  while (true) {
    while (n >= 100) {
      n = n - 100;
      ans++;
    }
    while (n >= 20) {
      n = n - 20;
      ans++;
    }
    while (n >= 10) {
      n = n - 10;
      ans++;
    }
    while (n >= 5) {
      n = n - 5;
      ans++;
    }
    if (n < 5) break;
  }
  cout << ans + n;
}
