#include #include #include using namespace std; int main(){ string N; cin >> N; reverse(N.begin(),N.end()); if(N == "2"){ cout << 0 << endl << "Yes" << endl; return 0; } else{ int x = stoi(N.substr(0,1)); if(x %2 == 0){ cout << 0 << endl << "No" << endl; } else{ cout << 1 << endl << "No" << endl; } } return 0; }