#include using namespace std; int main(){ long long s; cin >> s; cout << s/3*2+s/5*2 << endl; return 0; }