#include<iostream> #include<algorithm> using namespace std; int main(){ long long N;cin>>N; long long sum=0; sum += (N/3)*2 + (N/5)*2; cout<<sum; }