#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int f = 1, x = 0;
  char ch;
  do {
    ch = getchar();
    if (ch == '-') f = -1;
  } while (ch < '0' || ch > '9');
  do {
    x = x * 10 + ch - '0';
    ch = getchar();
  } while (ch >= '0' && ch <= '9');
  return f * x;
}
int n;
int a[400001];
int main() {
  n = read();
  if (n == 1) {
    printf("YES\n1 2\n");
    return 0;
  }
  a[1] = 1;
  a[n + 1] = 2;
  int k = 2 * n;
  for (int i = 2; i <= n; i++) {
    a[i] = k;
    if (k % 2 == 0) {
      a[i + n] = k - 1;
      k -= 3;
    } else {
      a[i + n] = k + 1;
      k--;
    }
  }
  int last = 0;
  int maxx = 0, minn = 2147483647;
  for (int i = 1; i <= n; i++) {
    last += a[i];
    a[2 * n + i] = a[i];
  }
  for (int i = 2; i <= 2 * n; i++) {
    int k = last - a[i - 1] + a[i + n - 1];
    if (k > maxx) maxx = k;
    if (k < minn) minn = k;
    last = k;
  }
  if (maxx - minn > 1) {
    printf("NO\n");
    return 0;
  }
  printf("YES\n");
  for (int i = 1; i <= 2 * n; i++) printf("%d ", a[i]);
  printf("\n");
  return 0;
}
