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