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