#include using namespace std; using ll = long long; int main() { ios::sync_with_stdio(false); cin.tie(0); string n; cin >> n; int t = n.back() - '0'; if (t % 2 == 0) { cout << 0 << endl; cout << (n == "2" ? "Yes" : "No") << endl; } else { cout << 1 << endl; cout << "No" << endl; } return 0; }