#include using namespace std; int main(){ string S;cin>>S; if(S=="2")cout<<0<<"\nYes\n"; else cout<<(S[S.size()-1]-'0')%2<<"\nNo\n"; }