#include using namespace std; using ll=long long; #define rep(i,n) for (int i = 0; i < (n); ++i) vector> soinsuu(ll x){ vector> res; for(ll i=2;i<=sqrt(x);i++){ if(x%i==0){ res.emplace_back(i,1LL); x/=i; } while (x%i==0) { res.back().second++; x/=i; } } if(x!=1)res.emplace_back(x,1); return res; } int main(){ ll n;cin>>n; cout<<(soinsuu(n).size()<=2?"Yes":"No")<