import std; void main() { long N; readf("%s\n",&N); int cnt; for(long i=2;i*i<=N;++i) { cnt+=N%i==0; while(N%i==0)N/=i; } cnt+=N>1; writeln(cnt<3?"Yes":"No"); }