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