#include <bits/stdc++.h>
const double PI = 3.141592653589793238460;
using namespace std;
void solve() {
  int n;
  cin >> n;
  vector<int> fh;
  vector<int> sh;
  if (n % 2 == 1) {
    cout << "YES" << '\n';
    int init = 1;
    fh.push_back(init);
    init++;
    for (int i = 1; i < n; i++) {
      if (i % 2 == 1) {
        sh.push_back(init);
        init++;
        sh.push_back(init);
        init++;
      } else {
        fh.push_back(init);
        init++;
        fh.push_back(init);
        init++;
      }
    }
    sh.push_back(init);
    for (int i = 0; i < n; i++) cout << fh[i] << " ";
    for (int i = 0; i < n; i++) cout << sh[i] << " ";
    cout << '\n';
  } else {
    cout << "NO" << '\n';
  }
}
int main() {
  int T = 1;
  while (T--) solve();
}
