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