N = int(input()) def leap(N: int) -> bool: if N % 400 == 0: return True if N % 100 == 0: return False if N % 4 == 0: return True return False print("Yes" if leap(N) else "No")