#include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; const ll INF=1LL<<60; typedef pair P; typedef pair PP; const ll MOD=1e9+7; const double PI=acos(-1); int main(){ ll N; cin>>N; if(N==1){ cout<<"No"<> ans; for(ll p=2;p*p<=N;p++){ if(N%p==0){ pair tmp; tmp.first=p; tmp.second=0; while(N%p==0){ N/=p; tmp.second++; } ans.push_back(tmp); } } if(N>1){ ans.push_back(make_pair(N,1)); } if(ans.size()<=2){ cout<<"Yes"<