import sys unput=sys.stdin.readline def isleapyear(year): return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) N = int(input()) print("Yes" if isleapyear(N) else "No")