import sys sys.setrecursionlimit(5*10**5) input = sys.stdin.readline from collections import defaultdict, deque, Counter from heapq import heappop, heappush from bisect import bisect_left, bisect_right from math import gcd n = int(input()) evsum = 0 odsum = 0 for i in range(1,n): if i % 2 == 0: evsum += i else: odsum += i if odsum > 4 and odsum%2 == 0 and (evsum//2)%2 == 0: print('Yes') else: print('No')