N = int(input()) if N%400 == 0 or (N%100 != 0 and N%4 == 0): print("Yes") else: print("No")