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