N = int(input()) A = list(range(1, N+1)) if N%2 == 0: A[N-2], A[N-1] = A[N-1], A[N-2] if N == 2: print("No") else: print("Yes");print(*A)