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