#include<bits/stdc++.h> using namespace std; int main() { int s; cin>>s; if(s==1||s==3||s==5) cout<<"NO"; else cout<<"YES"; }