/* -*- coding: utf-8 -*- * * 2655.cc: No.2655 Increasing Strides - yukicoder */ #include #include using namespace std; /* constant */ /* typedef */ typedef long long ll; /* global variables */ /* subroutines */ bool check(int n) { return ! (((ll)n * (n + 1) / 2) & 1); } /* main */ int main() { int n; scanf("%d", &n); int x = (n + 1) / 2, y = n / 2; if (check(x) && check(y)) puts("Yes"); else puts("No"); return 0; }