def f(n): if n%400==0: return 0 if n%100==0: return 1 return n%4>0 N=int(input()) print(["Yes","No"][f(N)])