#include <bits/stdc++.h>
using namespace std;
const int N = 100005;
const long long MOD = 1e9 + 7;
int dX[] = {0, 0, 1, -1};
int dY[] = {1, -1, 0, 0};
int a[] = {100, 20, 10, 5, 1};
int main() {
  int n, ans = 0;
  scanf("%d", &n);
  for (int i = 0; i < 5; ++i) {
    int am = n / a[i];
    ans += am;
    n -= am * a[i];
  }
  cout << ans;
  return 0;
}
