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