import sys from itertools import permutations from heapq import heappop,heappush from collections import deque import random import bisect input = lambda :sys.stdin.readline().rstrip() mi = lambda :map(int,input().split()) li = lambda :list(mi()) N = int(input()) odd = (N+1)//2 even = N//2 if (3 <= odd and odd & 1 == 0) and 3 <= even: print("Yes") else: print("No")