#include using namespace std; int main() { long long N; cin >> N; set se; for(long long i = 2; i * i <= N; i++) { if(N % i == 0) { while(N % i == 0) N /= i; se.insert(i); } } if(N != 0) se.insert(N); if(se.size() <= 2) cout << "Yes" << endl; else cout << "No" << endl; }