y=int(input()) if(y%400==0)|((y%4==0)&(y%100!=0)): print("Yes") else: print("No")