import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); sc.close(); long s0 = 0; long s1 = 0; for (int i = 2; i <= n; i += 2) { s0 += i; } for (int i = 1; i <= n; i += 2) { s1 += i; } if (s0 % 2 != 0 || s1 % 2 != 0) { System.out.println("No"); return; } s0 /= 2; s1 /= 2; int start = n; if (n % 2 == 1) { start--; } for (int i = start; i > 0; i -= 2) { if (i <= s0) { s0 -= i; } } start = n; if (n % 2 == 0) { start--; } for (int i = start; i > 0; i -= 2) { if (i <= s1) { s1 -= i; } } if (s0 == 0 && s1 == 0) { System.out.println("Yes"); } else { System.out.println("No"); } } }