#include using namespace std; void testcase() { string N; cin >> N; if (N == "2") cout << "0\nYes\n"; if (N[N.size() - 1] % 2 == 1) cout << "1\n"; else cout << "0\n"; cout << "No\n"; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); testcase(); return 0; }