long a;j,t;main(i){for(scanf("%ld",&a);++t%3;a/=i>j?a:i--)for(j=sqrt(a);i++1?"YES":"NO");}