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