#include using namespace std; long n,i,c; main() { cin>>n; for(i=2;i*i<=n;i++)for(c+=n%i<1;n%i<1;)n/=i; cout<<(c>1?"YES":"NO")<