#include <bits/stdc++.h>
using namespace std;
int n, a[2 * 100010];
int main(int argc, const char* argv[]) {
  scanf("%d", &n);
  if (n % 2 == 0)
    cout << "NO" << endl;
  else {
    cout << "YES" << endl;
    for (int i = 1; i <= n; i++) {
      if (i % 2 == 0) {
        a[i] = 2 * i;
        a[i + n] = 2 * i - 1;
      } else {
        a[i] = 2 * i - 1;
        a[i + n] = 2 * i;
      }
    }
    for (int i = 1; i <= 2 * n; i++) {
      cout << a[i];
      if (i == 2 * n)
        cout << endl;
      else
        cout << " ";
    }
  }
  return 0;
}
