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