#include <bits/stdc++.h>
using namespace std;
int a[300010];
int main() {
  int n;
  cin >> n;
  if (n % 2 == 0)
    printf("NO\n");
  else {
    int cur = 1;
    for (int i = 1; i <= n; i++) {
      if (i % 2) {
        a[i] = cur;
        a[i + n] = cur + 1;
      } else {
        a[i] = cur + 1;
        a[i + n] = cur;
      }
      cur += 2;
    }
    cout << "YES\n";
    for (int i = 1; i <= 2 * n; i++) cout << a[i] << " ";
    cout << endl;
  }
  return 0;
}
