#include <bits/stdc++.h>
using namespace std;
int a[200005];
int main() {
  int n;
  scanf("%d", &n);
  if (n % 2 == 0) {
    printf("NO");
    return 0;
  }
  printf("YES\n");
  int k = 1;
  int p = 1;
  int jp = 1;
  while (k <= 2 * n) {
    a[p] = k++;
    if (jp == 0) {
      p++;
      jp = 1;
    } else {
      if (p <= n)
        p += n;
      else
        p -= n;
      jp = 0;
    }
  }
  for (int i = 1; i <= 2 * n; i++) printf("%d ", a[i]);
  return 0;
}
