#include #include int main(void){ int i, a = 0; long N; scanf("%ld", &N); int x = (int)floor(sqrt((double)N)); if(N<=7){ printf("NO\n"); }else{ if(N%2==0){ N = N/2; a++; } for(i=3;i<=x;i=i+2){ if(N%i==0){ N = N/i; a++; } if(a>=3) break; } if(a>=3){ printf("YES\n"); }else{ printf("NO\n"); } } return 0; }