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