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