N = int(input()) if N%400 == 0: ans = "Yes" elif N%100 == 0: ans = "No" elif N%4 == 0: ans = "Yes" else: ans = "No" print(ans)