#include int main () { int n = 0; int res = 0; int is_ng = 0; int v = 0; int h = 0; res = scanf("%d", &n); v = n/2; h = (n+1)/2; if ((((v*(v+1))/2)%4 != 0 && ((v*(v+1))/2)%4 != 2) || v == 1 || v == 2) { is_ng = 1; } if (h%2 == 1 || (h*h)%4 != 0 || h == 2) { is_ng = 1; } if (is_ng > 0) { printf("No\n"); } else { printf("Yes\n"); } return 0; }