x = int(input()) leap = "Yes" common = "No" if x % 400 == 0: print(leap) elif x % 100 == 0: print(common) elif x % 4 == 0: print(leap)