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