A = input() B = int(A) C = B % 400 if C == 0: print("yes") else: C = B % 100 if C == 0: print("no") else: C = B % 4 if C == 0: print("yes") else: print("no")