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