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