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