#include using namespace std; #define rep(i,n) for(int i=0;i vi; typedef vector > vvi; typedef pair pii; const vi dy = {-1, 0, 1, 0}, dx = {0, -1, 0, 1}; template ostream& operator<< (ostream& out, const pair& p) { out << '(' << p.first << ", " << p.second << ')'; return out; } template ostream& operator<< (ostream& out, const vector& v) { out << '['; rep(i, v.size()) out << v[i] << ","; out << "\b], " << v.size(); return out; } void solve(){ unsigned long N; cin >> N; cout << (N/3+N/5)*2 << endl; } signed main() { cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(9); solve(); return 0; }