#include using namespace std; typedef long long ll; typedef pair P; #define REP(i,n) for(int i=0;i prime_factor(ll n){ map p; for(ll i=2;i*i<=n;i++){ while(n%i==0){ p[i]++; n/=i; } } if(n!=1) p[n]=1; return p; } int main(void){ cin.tie(nullptr); ios_base::sync_with_stdio(false); int i,j,k; ll N; cin >> N; map m=prime_factor(N); ll x=m.size(); if(x<=2) cout << "Yes" << endl; else cout << "No" << endl; return 0; }