#include using namespace std; int main() { string n = ""; cin >> n; set temp = {'0','2','4','6','8'}; if (n == "2") { cout << 0 << endl; cout << "Yes" << endl; } else if (temp.contains(n[n.size() - 1])) { cout << 0 << endl; cout << "No" << endl; } else { cout << 1 << endl; cout << "No" << endl; } }