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