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