#include #ifdef LOCAL #include "./debug.cpp" #else #define debug(...) #define print_line #endif using namespace std; using ll = long long; int main() { int N; cin >> N; ll sum = 0; for (int i = 1; i <= N; i++) { if (i % 2) { sum += i; } else { sum -= i; } } puts(sum == 0 ? "Yes" : "No"); }