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