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