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