#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int f = 1, ans = 0;
  char c = getchar();
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') {
    ans = ans * 10 + c - '0';
    c = getchar();
  }
  return f * ans;
}
const int MAXN = 200001;
int N, A[MAXN], cnt;
int main() {
  N = read();
  if (!(N & 1)) {
    printf("NO\n");
    return 0;
  }
  printf("YES\n");
  for (int i = 1; i <= N; i++) {
    if (i & 1)
      A[i] = ++cnt, A[i + N] = ++cnt;
    else
      A[i + N] = ++cnt, A[i] = ++cnt;
  }
  for (int i = 1; i <= 2 * N; i++) printf("%d ", A[i]);
  printf("\n");
  return 0;
}
