N=int(input()) if N<=2: print("No") exit(0) even_num=N//2 odd_num=N//2 if N%2==1:odd_num+=1 if even_num%2==0 and odd_num%4==0:print("Yes") else:print("No")