long a;t;main(i){for(scanf("%ld",&a);a/i/i;i++)t+=a%i<1;a=!puts(t>2?"YES":"NO");}