#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 7;
int ans[maxn];
int main() {
  int n;
  scanf("%d", &n);
  if (!(n & 1)) return printf("NO\n"), 0;
  ans[1] = 1;
  int p = n + 1;
  for (register int i = 2; i <= 2 * n; i++) {
    ans[p] = i;
    p++;
    i++;
    ans[p] = i;
    if (p > n)
      p -= n;
    else
      p += n;
  }
  printf("YES\n");
  for (register int i = 1; i <= 2 * n; i++) printf("%d ", ans[i]);
  return 0;
}
