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