N=int(input()) o=(N+1)//2 e=N//2 if (e+1)//2%2==0 and o%2==0 and o>2: print("Yes") else: print("No")