#include int main(){ long long int i,j,N,x; int count=0; scanf("%lld",&N); x=N; for(i=2;i*i<=N;i++){ while(1){ if(x%i!=0)break; x=x/i; count++; } if(count>2)break; } if(count>2)printf("YES\n"); else printf("NO\n"); return 0; }