#include int main() { int p; scanf("%d", &p); if (p == 2 || p % 4 == 1) printf("Yes\n"); else printf("No\n"); return 0; }