#include using namespace std; #define step(i, s, n, d) for(int i=s; i> x; #define puts(x) x; cout << x << endl; #define list_input(x, n) x[n]; rep(i,n){ gets(x[i]);} #define ll long long int main(){ ll n, result = 0; cin >> n; result += n/3; result += n/5; puts(result*2) }