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