#include <iostream> using namespace std; int main() { int day; cin>>day; if(day%2==0||day==7) cout<<"YES"; else cout<<"NO"; return 0; }