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