#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 10;
int i, j, n, s[maxn];
int main() {
  scanf("%d", &n);
  if (!(n & 1)) {
    printf("NO\n");
    return 0;
  }
  int l = 1, r = 2 * n;
  bool turn = true;
  for (i = 0, j = n; i < n; i++, j++) {
    if (turn) {
      s[i] = l++;
      s[j] = l++;
    } else {
      s[i] = r--;
      s[j] = r--;
    }
    turn = !turn;
  }
  printf("YES\n");
  for (int i = 0; i < 2 * n; i++) printf("%d ", s[i]);
  printf("\n");
  return 0;
}
