#include <bits/stdc++.h>
using namespace std;
template <class T>
void print(const T niz[], const int siz) {
  for (int i = 0; i < siz; i++) cout << niz[i] << " ";
  cout << endl;
}
int n;
int niz[200005];
int main() {
  ios_base::sync_with_stdio(false);
  cin >> n;
  if (n % 2 == 0) {
    cout << "NO";
    return 0;
  }
  for (int i = 0; i < n; i++) {
    int tr = (i + 1) * 2;
    if (i % 2 == 0) {
      niz[i] = tr - 1;
      niz[i + n] = tr;
    } else {
      niz[i] = tr;
      niz[i + n] = tr - 1;
    }
  }
  cout << "YES\n";
  for (int(i) = (0); (i) <= (2 * n - 1); ++(i)) cout << niz[i] << " ";
  return 0;
}
