def judge(N): if N % 400 == 0: return True if N % 100 == 0: return False if N % 4 == 0: return True return False def main(): N = int(input()) ans = "Yes" if judge(N) else "No" print(ans) main()