#include using namespace std; int main(){ string s; cin >> s; if (s == "2") return cout << 0 << endl << "Yes" << endl, 0; else if (s.back() % 2 == 0) cout << 0 << endl << "No" << endl, 0; else cout << 1 << endl << "No" << endl, 0; }