import sys, time, random from collections import deque, Counter, defaultdict input = lambda: sys.stdin.readline().rstrip() ii = lambda: int(input()) mi = lambda: map(int, input().split()) li = lambda: list(mi()) inf = 2 ** 61 - 1 mod = 998244353 n = ii() even = 0 odd = 0 for i in range(1, n + 1): if i % 2 == 0: even += i else: odd += i ans = 'Yes' cnt = 0 if even % 2 or odd % 2: ans = 'No' heven = even // 2 for i in range(n, 0, -1): if i % 2 == 0 and heven >= i: heven -= i if heven: ans = 'No' hodd = odd // 2 for i in range(n, 0, -1): if i % 2 and hodd >= i: hodd -= i if hodd: ans = 'No' print(ans)