#include using namespace std; int main() { long long N; cin >> N; map mp; for( long long i = 2; i * i <= N; i++ ) { while( N % i == 0 ) { mp[i]++; N /= i; } } if( N != 1 ) mp[N]++; string ans = "No"; int sz = mp.size(); if( sz <= 2 ) ans = "Yes"; cout << ans << endl; }