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