#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ans = 0, i = 0;
  cin >> n;
  int A[5] = {100, 20, 10, 5, 1};
  while (n) {
    ans += n / A[i];
    n = n % A[i];
    i++;
  }
  cout << ans;
}
