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