N = int(input()) if N<=6: print("No") else: if ((N+1)//2)%2==0 and (((N//2)*(N//2+1))//2)%2==0: print("Yes") else: print("No")