#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n,count=0;
cin>>n;
n=n/10;
count=n;
if(n/5){
count+=(n/5)*2;
n=n-5*(n/5);
}
if(n/3){
count+=(n/3);
}
cout<<count;
return 0;
}
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n,count=0;
cin>>n;
n=n/10;
count=n;
if(n/5){
count+=(n/5)*2;
n=n-5*(n/5);
}
if(n/3){
count+=(n/3);
}
cout<<count;
return 0;
}