#include #include #include #include #include #include const int mod=1e9+7; using LL=long long; using std::cout;using std::endl;using std::cin; using std::vector;using std::string;using std::set;using std::multiset; using std::pair;using std::map; using std::min;using std::max; using std::make_pair;using std::swap; std::ostream& operator<<(std::ostream& os,std::map& obj){for(std::map::iterator itr=obj.begin();itr!=obj.end();itr++){os<first<<"^"<second<<" ";}return os;} std::ostream& operator<<(std::ostream& os,std::vector>& obj){for(auto itr=obj.begin();itr!=obj.end();itr++){os<<*itr<& obj){for(auto itr=obj.begin();itr!=obj.end();itr++){os<<*itr<<" ";}return os;} std::ostream& operator<<(std::ostream& os,std::vector>& obj){for(auto itr=obj.begin();itr!=obj.end();itr++){os<<*itr< void sort(T &v){std::sort(v.begin(),v.end());} template void rsort(T &v){std::sort(v.rbegin(),v.rend());} } int main(){ LL n;cin>>n; LL ans=0; ans += 4*(n/15); ans += 2*(n/3 + n/5 - n/15 - n/15); cout<