#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  int n;
  cin >> n;
  if (n % 2 == 0) {
    cout << "NO\n";
    return 0;
  }
  vector<int> res(2 * n);
  int t = 0;
  for (int i = 1; i <= 2 * n; i++) {
    res[t] = i;
    if (i % 2 == 0) {
      t -= 1;
    } else {
      t = (t + n) % (2 * n);
    }
  }
  cout << "YES\n";
  for (int i : res) {
    cout << i << " ";
  }
  cout << "\n";
}
