#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  if (n % 2 == 0) {
    cout << "NO";
    return 0;
  }
  vector<int> a(2 * n);
  bool flag = true;
  int next = 1;
  for (int i = 0; i < n; i++) {
    if (flag) {
      a[i] = next++;
      a[(i + n) % (2 * n)] = next++;
      flag = !flag;
    } else {
      a[(i + n) % (2 * n)] = next++;
      a[i] = next++;
      flag = !flag;
    }
  }
  cout << "YES" << endl;
  for (int i = 0; i < a.size(); i++) {
    cout << a[i] << " ";
  }
  return 0;
}
