#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (cin >> n) {
    if (n % 2 == 0) {
      cout << "NO" << endl;
    } else {
      int d = 4;
      vector<int> v;
      v.push_back(1);
      while (d <= (2 * n)) {
        v.push_back(d);
        v.push_back(d + 1);
        d += 4;
      }
      d = 2;
      while (d <= (2 * n)) {
        v.push_back(d);
        if (d == (2 * n)) break;
        v.push_back(d + 1);
        d += 4;
      }
      cout << "YES" << endl;
      for (int i = 0; i < v.size(); i++) cout << v[i] << " ";
      cout << endl;
    }
  }
  return 0;
}
