N = int(input()) odd = 0 even = 0 for i in range(N): if i % 2 == 0: odd += 1 else: even += i+1 if 4 <= odd and odd%2 == 0 and even//2%2 == 0: print("Yes") else: print("No")