n=int(input()) if n==2: print("No") elif n%2: print("Yes") print(*list(range(1,n+1))) else: print("Yes") print(*([1]+list(range(3,n+1))+[2]))