#include <bits/stdc++.h>
using namespace std;
void optimizeIO() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
}
int main() {
  optimizeIO();
  int tt = 1;
  while (tt--) {
    int n;
    cin >> n;
    if (n % 2 == 0) {
      cout << "NO" << endl;
      return 0;
    }
    cout << "YES" << endl;
    int temp = 0;
    vector<int> res(2 * n);
    for (int i = (int)(0); i < (int)(n); i++) {
      if (i % 2 == 0)
        res[i] = ++temp;
      else {
        temp += 3;
        res[i] = temp;
      }
    }
    for (int i = (int)(n); i < (int)(2 * n); i++) {
      if ((i - n) % 2 == 0)
        res[i] = res[i - n] + 1;
      else
        res[i] = res[i - n] - 1;
    }
    for (int i = (int)(0); i < (int)(2 * n); i++) cout << res[i] << " ";
  }
  return 0;
}
