
#include<bits/stdc++.h>

using namespace std;
#define lp(i,n) for(int i=0;i<n;i++)
#define lps(i,j,n) for(int i=j;i<n;i++)
#define fordebug int hoge;cin>>hoge;
#define DEKAI 1000000007;
#define INF (1<<28)
#define int long long


signed main(){
  int n;
  cin>>n;
  int ans=0;
  int a[4]={25,10,5,1};
  lp(i,4){
    ans+=n/a[i];
    n%=a[i];
  }
  cout<<ans<<endl;
  return 0;
}

