n = int(input()) ans = "No" if not n % 4: ans = "Yes" if not n % 100: ans = "No" if not n % 400: ans = "Yes" print("Yes")