#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 100;
int n, a[maxn];
void solve(int n) {
  if (n % 2) {
    cout << "YES" << endl;
    int fg = 1, k = 3;
    a[1] = 1;
    a[n + 1] = 2;
    for (int i = 2; i <= n; i++) {
      if (fg) {
        a[i] = k + 1;
        a[i + n] = k;
        fg = 0;
      } else {
        a[i] = k;
        a[i + n] = k + 1;
        fg = 1;
      }
      k += 2;
    }
    for (int i = 1; i <= 2 * n; i++) cout << a[i] << " ";
  } else {
    cout << "NO";
  }
}
int main() {
  cin >> n;
  solve(n);
  cout << endl;
}
