#include using namespace std; int main() { string N; cin >> N; if (N == "2") { cout << "0" << endl; cout << "Yes" << endl; } if (((N[N.size() - 1] - '0') & 1) == 0) { cout << "0" << endl; cout << "No" << endl; } else { cout << "1" << endl; cout << "No" << endl; } }