#include #include #include using namespace std; int main(){ int N,count=0; cin >> N; count += (4*(N/15)); count += (2*(N/3+N/5-2*(N/15))); cout << count; }