n=int(input()) o=(n+1)//2 e=n//2 print("Yes" if (o>=4 and o%2==0) and ((e>=4 and e%2==0) or (e-3>=4 and (e-3)%2==0) or (e-3==0)) else "No")