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