#include <bits/stdc++.h>
using namespace std;
long long solve(long long n) {
  if (n >= 100) {
    long long x = n / 100;
    return (x + solve(n - (x * 100)));
  }
  if (n >= 20) {
    long long x = n / 20;
    return (x + solve(n - (x * 20)));
  }
  if (n >= 10) {
    long long x = n / 10;
    return (x + solve(n - (x * 10)));
  }
  if (n >= 5) {
    long long x = n / 5;
    return (x + solve(n - (x * 5)));
  }
  return (n);
}
void solve() {
  long long n;
  cin >> n;
  cout << solve(n) << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
