#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 10;
int n;
int nn;
int a[maxn];
set<int> st;
set<int>::iterator it;
int main() {
  scanf("%d", &n);
  nn = n * 2;
  int l = 0, r = n;
  int time = 0;
  int now = 0;
  while (now < nn) {
    a[l++] = 1 + time;
    a[r++] = 1 + time + 1;
    now += 2;
    if (now < nn) {
      a[l++] = nn - time;
      a[r++] = nn - time - 1;
      now += 2;
    }
    time += 2;
  }
  int flag = n & 1;
  if (flag) {
    printf("YES\n");
    for (int i = 0; i < nn; i++) {
      printf("%d", a[i]);
      if (i == nn)
        printf("\n");
      else
        printf(" ");
    }
  } else
    printf("NO\n");
}
