#include <bits/stdc++.h>
using namespace std;
const int OO = (int)1e8;
const double PI = acos(-1.0);
const double EPS = (1e-7);
int dcmp(double x, double y) { return fabs(x - y) <= EPS ? 0 : x < y ? -1 : 1; }
int main() {
  int n;
  while (cin >> n) {
    if (n % 2 == 0)
      cout << "NO\n";
    else {
      cout << "YES\n";
      vector<int> v(2 * n);
      int x = 4;
      v[0] = 1, v[n] = 2;
      for (int i = 0; i < (int)(n - 1); ++i) {
        if (i % 2 == 0)
          v[i + 1] = x, v[i + 1 + n] = x - 1;
        else
          v[i + 1] = x - 1, v[i + 1 + n] = x;
        x += 2;
      }
      for (int i = 0; i < ((int)((v).size())); ++i) {
        if (i) cout << " ";
        cout << v[i];
      }
      cout << "\n";
    }
  }
  return 0;
}
