#include <bits/stdc++.h>
using namespace std;
vector<int> v;
vector<pair<int, int> > po;
int main() {
  int n;
  scanf("%d", &n);
  v.resize(n);
  if (n % 2 == 0) {
    printf("NO\n");
    exit(0);
  }
  printf("YES\n");
  int sw = 0;
  for (int i = 1; i < 2 * n + 1; i += 2) {
    if (sw == 0) {
      po.push_back({i, i + 1});
      sw = 1;
    } else {
      po.push_back({i + 1, i});
      sw = 0;
    }
  }
  for (auto e : po) {
    printf("%d ", e.first);
  }
  for (auto e : po) {
    printf("%d ", e.second);
  }
  printf("\n");
}
