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