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