import sys input = sys.stdin.readline N = int(input()) now = [0, 0] d = 0 dir = [(0, 1), (-1, 0), (0, -1), (1, 0)] for i in range(1, N+1): dx, dy = dir[d] now[0] += dx*i now[1] += dy*i d += 1 d %= 4 if now[0]==0 and now[1]==0: print("Yes") else: print("No")