#include using namespace std; using ll = long long; #ifdef LOCAL #include #else #define debug(...) #endif int main() { cin.tie(nullptr); ios::sync_with_stdio(false); cout << fixed << setprecision(20); string N; cin >> N; cout << (N == "2" ? "0\nYes\n" : (N.back() & 1 ? "1\nNo\n" : "0\nNo\n")); }