#include <bits/stdc++.h>
using namespace std;
long long a, b, c, d, f, n, m, i, j, t, k, l, o, p, r, y, mx, mn;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> a;
  b += a / 100;
  a %= 100;
  b += a / 20;
  a %= 20;
  b += a / 10;
  a %= 10;
  b += a / 5;
  a %= 5;
  b += a;
  cout << b;
}
