#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  int n;
  cin >> n;
  if (n % 2 == 0) {
    cout << "NO" << endl;
  } else {
    cout << "YES" << endl;
    int i;
    int a[200005];
    for (i = 0; i < n; i++) {
      a[i] = i * 2 + 1;
      a[i + n] = i * 2 + 2;
      if (i % 2) {
        int temp = a[i];
        a[i] = a[i + n];
        a[i + n] = temp;
      }
    }
    for (i = 0; i < 2 * n; i++) {
      cout << a[i] << " ";
    }
    cout << endl;
  }
  return 0;
}
