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