N = int(input()) A = list(range(1, N + 1, 2)) B = list(range(2, N + 1, 2)) if sum(A) % 2 or len(A) <= 2: exit(print("No")) if sum(B) % 4 or len(B) <= 2: exit(print("No")) print("Yes")