#include<bits/stdc++.h>
using namespace std;

#define INF (int)(1e9)
#define MOD (int)((int)1e9+7)

int main(){
  int n, m = 0;

  cin>>n;

  m += n/25;
  n -= 25*(n/25);
  
  m += n/10;
  n -= 10*(n/10);
  
  m += n/5;
  n -= 5*(n/5);
  
  m += n;
  cout<<m<<endl;
  return 0;
}
