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