n=int(input()) print("Yes") L=[i for i in range(1,n+1)] if n%2==0: L[-2],L[-1]=L[-1],L[-2] print(*L)