p = int(input()) if p == 2 or p % 4 == 1: print("Yes") else: print("No")