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