#include <iostream>
using namespace std;
int main(void){
    int n;
    cin>>n;
    int s=0;
    while(true){
        if(n<25)    break;
        else{
            n=n-25;
            s=s+1;
        }
    }
    while(true){
        if(n<10)    break;
        else{
            n=n-10;
            s=s+1;
        }
    }
    while(true){
        if(n<5)    break;
        else{
            n=n-5;
            s=s+1;
        }  
    }
    s=s+n;
    cout<<s;
    cout<<endl;
}
    

