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