n=int(input()) ans='Yes' if n%4==0: if n%400==0: pass elif n%100==0: ans='No' else: ans='No' print(ans)