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