#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define REP(i,s,n) for(int i=s;i<n;i++)
#define all(a) a.begin(),a.end()
typedef long long ll;
const ll inf = 1e9;

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