#include using namespace std; int main(){ cin.tie(0); ios::sync_with_stdio(false); long long int n; cin >> n; cout << (n/3)*2 + (n/5)*2 << "\n"; return 0; }