#include #include #include using namespace std; int main(){ int n, f, b; cin >> n; f = n / 3; b = n / 5; cout << (f+b)*2 << endl; return 0; }