#include #include using namespace std; int main(){ int n; cin >> n; int FizzBuzz = n/15; int Fizz = n/3 - FizzBuzz; int Buzz = n/5 - FizzBuzz; cout << (Fizz+Buzz)*2 + FizzBuzz*4 << endl; }