#include #include #include #include #include #include #include #include #include #include #include #define INF 10000000 #define PI 3.14159265358979323846 using namespace std; typedef long long ll; typedef pair p; typedef queue qi; typedef queue< pair > qp; typedef vector vi; typedef vector vii; typedef vector< pair > vp; int dx[4] = { 0, 1, 0, -1 }; int dy[4] = { 1, 0, -1, 0 }; int main(){ ios::sync_with_stdio(false); ll n; cin >> n; // cout << n/3*2 << endl; // cout << n/5*2 << endl; cout << n/3*2 + n/5*2 <