#include int main(void) { unsigned long long int n,l,i,c,k=0,t=0; scanf("%llu",&n); l = n; for(i = 2;i*i <= l;i++){ c = 0; if(!(n % i)){ while(!(n % i)){ c++; if(c >= 3 || (c >= 2 && k >= 1) || t == 1 || k >= 2){printf("YES\n");return 0;} else if(c >= 2){t = 1;} n/=i; } k++; } } printf("NO\n"); return 0; }