#include <bits/stdc++.h>
using namespace std;
template <class T>
void input_vec(std::vector<T> &v, int n) {
  for (int i = 0; i < n; i++) {
    cin >> v[i];
  }
}
template <class T>
void show(vector<T> &v) {
  for (T x : v) {
    cout << x << " ";
  }
  cout << endl;
}
void solve() {
  int n;
  cin >> n;
  if (n % 2 == 0) {
    cout << "NO" << endl;
    return;
  }
  std::vector<int> v(2 * n);
  int c = 0;
  int x = 1;
  for (int k = 0; k < n; k++) {
    v[c] = x++;
    c = (c + n) % (2 * n);
    v[c] = x++;
    c = (c - 1 + 2 * n) % (2 * n);
  }
  cout << "YES" << endl;
  show(v);
}
int main() {
  solve();
  return 0;
}
