#include <bits/stdc++.h>
long long read() {
  long long ret = 0;
  char c = getchar();
  while (c < '0' || c > '9') c = getchar();
  while (c >= '0' && c <= '9') ret = ret * 10 + c - '0', c = getchar();
  return ret;
}
int n;
int main() {
  n = read();
  if (n & 1) {
    puts("YES");
    int i;
    long long a = ((long long)n * (2 * n + 1) - 1) >> 1;
    for (i = 1; i <= (n - 1) / 2; ++i)
      printf("%d %d ", (i - 1) * 4 + 2, (i - 1) * 4 + 3);
    printf("%d ", 2 * n);
    for (i = 1; i <= (n - 1) / 2; ++i)
      printf("%d %d ", (i - 1) * 4 + 1, (i - 1) * 4 + 4);
    printf("%d ", 2 * n - 1);
  } else
    puts("NO");
  return 0;
}
