#include using namespace std; using ll = long long; int main(){ ll n; cin >> n; ll m = n; ll cnt = 0; for(ll i = 2;i*i <= n;i++){ if(m % i != 0) continue; cnt++; if(cnt > 2){ cout << "No" << endl; return 0; } while(m % i == 0){ m /= i; } } if(cnt <= 2){ cout << "Yes" << endl; } else{ cout << "No" << endl; } }