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