q=input().split() n=q[0] n=int(n) if n%4==0 and n%100!=0 or n%400==0 : print(n,"Yes") else: print(n,"No")