#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
const double eps = 1e-7;
const long long MOD = 1000000007LL;
const int INF = 0x3f3f3f3f;
const int _NAN = -0x3f3f3f3f;
const double EULC = 0.5772156649015328;
const int NIL = -1;
template <typename T>
void read(T &x) {
  x = 0;
  char ch = getchar();
  long long f = 1;
  while (!isdigit(ch)) {
    if (ch == '-') f *= -1;
    ch = getchar();
  }
  while (isdigit(ch)) {
    x = x * 10 + ch - 48;
    ch = getchar();
  }
  x *= f;
}
const int maxn = 2e5 + 10;
int arr[maxn];
int main(void) {
  ios::sync_with_stdio(false);
  int n;
  while (cin >> n) {
    if (~n & 1) {
      cout << "NO\n";
      continue;
    }
    for (int i = 1; i <= n; ++i) {
      if (i & 1) {
        arr[i] = 2 * i - 1;
        arr[i + n] = 2 * i;
      } else {
        arr[i] = 2 * i;
        arr[i + n] = 2 * i - 1;
      }
    }
    cout << "YES\n";
    for (int i = 1; i <= 2 * n; ++i)
      cout << arr[i] << (i == 2 * n ? "\n" : " ");
  }
  return 0;
}
