#include using namespace std; signed main(){ int n;cin>>n;int cnt=0; for(int i=2;i*i<=n;i++)if(n%i==0)cnt++; cout<<(cnt>1?"YES":"NO")<