N=int(input()) N0=(N+1)//2 N1=N//2 if N0%2==0 and N1%4 in (0,3): ans="Yes" else: ans="No" print(ans)