#include using namespace std; //変数デバッグ #define DEB(variable) cout << #variable << "=" << variable << endl //for簡易表記(引数ミス防止) #define INFOR(inc, a, b) for (int inc = (a); (inc) < (b); (inc)++) //incをaにし、b-a回(iがb未満の間)処理を行う #define DEFOR(inc, a, b) for ((inc) = (a); (inc) > (b); (inc)--) //incをaにし、a-b回(iがbより大きい間)処理を行う int main(){ int n,count=0; cin >> n; INFOR(i,0,n){ if(0==(i+1)%3){ count += 2; } if(0==(i+1)%5){ count += 2; } } cout << count << endl; return 0; }