n=int(input()) if n/2==0 or n/2==2 or n/2==5: print("Yes") else: print("No")