#include <bits/stdc++.h>
using namespace std;
 
int main() {
  long long n;
  cin >> n;
  unordered_map<int,bool> x;
  int count = 0;
  for (long long i = 2; i <= 100000 && i <= n; i++) {
    if (x.count(i) > 0) {
      continue;
    }
    long long t = i * i;
    while (t <= n) {
      if (t <= 100000) x[t] = true;
      count++;
      t *= i;
    }
  }
  cout << (n - count) << endl;
  return 0;
}
#include<iostream>
using namespace std;
int main()
{
    int N,p;
    cin>>N;
    if(1<=N && 300>=N)
    {
       p=N*1.08;
       if(p<206)
       {
           cout<<"Yay!";
       }
       else if(p==206)
       {
           cout<<"so-so";
       }
       if(p>206)
       {
           cout<<":(" ;

        }
    }

    return 0;
}
