#include #include #include #include using namespace std; int main(){ int64_t N; cin>>N; cout<<(N/3+N/5)*2<