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