#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int sum = 0, fushu = 1;
  char c = getchar();
  while (!isdigit(c)) {
    if (c == '-') fushu = -fushu;
    c = getchar();
  }
  while (isdigit(c)) {
    sum = sum * 10 + (c ^ 48);
    c = getchar();
  }
  return sum * fushu;
}
void write(int x) {
  if (x >= 10) write(x / 10);
  putchar(x % 10 + 48);
}
inline void writeln(int x) {
  write(x);
  putchar('\n');
}
int const maxn = 1e5 + 5;
int n, a[maxn << 1];
int main() {
  n = read();
  if (n % 2 == 0) {
    puts("NO");
    return 0;
  }
  for (int i = 1; i <= n; i++) {
    if (i & 1)
      a[i] = i * 2 - 1, a[i + n] = i * 2;
    else
      a[i + n] = i * 2 - 1, a[i] = i * 2;
  }
  puts("YES");
  for (int i = 1; i <= 2 * n; i++) printf("%d ", a[i]);
  return 0;
}
