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