N = int(input()) if N % 2 == 0: if (N-1) % 4 == 0: print("Yes") else: print("No") else: if (N-1) % 4 == 0: print("No") else: print("Yes")