#include <bits/stdc++.h>
const int maxn = 1e6 + 10;
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n == 1) {
    cout << "YES" << endl << "1 2" << endl;
    return 0;
  }
  if (n % 2 == 0) {
    cout << "NO" << endl;
  } else {
    cout << "YES" << endl;
    int t = 1;
    cout << t << ' ';
    int flag = 1;
    for (int i = 1; i < 2 * n; i++) {
      if (flag == 1) {
        t += 3;
        flag = 0;
      } else if (flag == 0) {
        t += 1;
        flag = 1;
      }
      if (t != 2 * n) t = t % (2 * n);
      cout << t << ' ';
    }
  }
}
