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