#include <bits/stdc++.h>
int a[200002];
void write(int x) {
  if (x < 10) {
    putchar(x + 48);
    return;
  }
  write(x / 10);
  putchar(x % 10 + 48);
}
int main() {
  int n, t, x, i, j;
  scanf("%d", &n);
  if (n & 1) {
    puts("YES");
    for (i = 0, j = n, x = 1; i < n; i++, j++, x += 2) {
      if (i & 1)
        a[i] = x + 1, a[j] = x;
      else
        a[i] = x, a[j] = x + 1;
    }
    for (i = 0, t = n << 1; i < t; i++) write(a[i]), putchar(32);
  } else
    puts("NO");
  return 0;
}
