#include <bits/stdc++.h>
using namespace std;
int n;
int ara[500000];
int main() {
  cin >> n;
  if (n % 2 == 0) {
    cout << "NO" << endl;
    return 0;
  }
  cout << "YES" << endl;
  int xx = 1, yy = n + 1;
  for (int i = 1; i <= n; i++) {
    if (i % 2) {
      ara[xx] = 2 * i - 1;
      ara[yy] = 2 * i;
    } else {
      ara[yy] = 2 * i - 1;
      ara[xx] = 2 * i;
    }
    xx--;
    yy--;
    if (xx == 0) xx = 2 * n;
  }
  for (int i = 1; i <= 2 * n; i++) printf("%d ", ara[i]);
  return 0;
}
