N=0 N=input() if N%4==0: print("YES") if N%100==0: print("NO") if N%400==0: print("YES")