#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,l,r) for(ll i=(l);i<(r);++i)

int main(){
	ll n; cin>>n;
	bool flg=false;
	for(ll i=2; i*i<=n; i++){
		if(n%i==0) flg=true;
	}
	if(n==1) flg=false;
	cout<<(flg?"YES":"NO")<<endl;
}