#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[2 * n];
  if (n % 2 != 0) {
    cout << "YES"
         << "\n";
    for (int i = 0; i < n; i++) {
      if (i % 2 == 0) {
        a[i] = i + 1;
        a[i + n] = i + 2;
      } else {
        a[i] = 2 * n - i + 1;
        a[i + n] = 2 * n - i;
      }
    }
    for (int i = 0; i < 2 * n; i++) {
      cout << a[i] << " ";
    }
  } else
    cout << "NO";
}
