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