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