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