import std; void main(){ ulong n = readln.chomp.to!ulong; ulong t = n; int c = 0; for(ulong p = 2; p <= t && p ^^ 2 < n; p += 1 + p % 2){ if(t % p) continue; c++; while(t % p == 0){ t /= p; } } writeln(c <= 2 ? "Yes" : "No"); }