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