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