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