#include "bits/stdc++.h" using namespace std; int main() { long long N; cin >> N; cout << (N / 3 + N / 5) * 2 << endl; }