#include <bits/stdc++.h>
using namespace std;
void fast() {
  ios::sync_with_stdio(NULL);
  cout.tie(NULL);
  cin.tie(NULL);
}
const double pi = 2 * acos(0.0);
const long long oo = 0x3f3f3f3f;
const int MOD = 1e9 + 7;
const int nn = 1e5 + 15;
int dx[8] = {1, 0, 0, -1, 1, -1, 1, -1};
int dy[8] = {0, 1, -1, 0, -1, 1, 1, -1};
int main() {
  fast();
  int n;
  cin >> n;
  if (n % 2 == 0)
    cout << "NO\n";
  else {
    vector<int> arr;
    arr.push_back(1);
    int x = n;
    for (int i = 1; i < 2 * n; i++) {
      if (i % 2) {
        int tmp = (arr[((int)((arr).size())) - 1] + 3) % (2 * n);
        if (!tmp) tmp = 2 * n;
        arr.push_back(tmp);
      } else {
        int tmp = (arr[((int)((arr).size())) - 1] + 1) % (2 * n);
        if (!tmp) tmp = 2 * n;
        arr.push_back(tmp);
      }
    }
    cout << "YES\n";
    for (int i = 0; i < 2 * n; i++) cout << arr[i] << " ";
    cout << "\n";
  }
  return 0;
}
