#include<bits/stdc++.h>
using namespace std;
int main(){
	int n,i,h=0;
	cin>>n;
	for(i=2;i<n-1;i++){
		if(n%i==0){
			h=h+1;
		    break;
		}
	}
	if(h>0){
		cout<<i;	
	}else{
		cout<<"Yes";
	}
	
	
	
}
/**************************************************************
	Problem: 1061
	User: hongjiaming
	Language: C++
	Result: Accepted
	Time:10 ms
	Memory:2072 kb
****************************************************************/