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