#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); string s; cin >> s; if(s == "2") cout << "0\nYes\n"; else if(s.back()%2 == '0'%2) cout << "0\nNo\n"; else cout << "1\nNo\n"; }