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