N = int(input()) if N < 7: print("No") exit() k = (N + 1) // 2 if k % 2 != 0: print("No") exit() k = N // 2 if k * (k + 1) % 4 == 0: print("Yes") else: print("No")