#include using namespace std; int main(){ int N;cin>>N; for(int i=3;i*i<=N;i++){ if(N%i==0){ puts("YES"); return 0; } } puts("NO"); }