#include <bits/stdc++.h>
using namespace std;
const int N = 3e5 + 5, INF = int(1e9), mod = int(1e9) + 7;
const long long BIG = 1e17;
int n, a[N], b[N], s[N];
int main() {
  cin >> n;
  if (n % 2 == 0) {
    cout << "NO\n";
    return 0;
  }
  int num = 1;
  bool cond = 1;
  for (int i = 1; i <= n; i++) {
    if (cond) {
      a[i] = num;
      a[i + n] = num + 1;
    } else {
      a[i] = num + 1;
      a[i + n] = num;
    }
    cond = 1 - cond;
    num += 2;
  }
  cout << "YES\n";
  for (int i = 1; i <= 2 * n; i++) {
    cout << a[i] << " ";
  }
}
