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