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