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