#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, n, i, j, a, b, sum, sum1;
  int arr[200005];
  cin >> n;
  if ((n & 1)) {
    int count = 1;
    cout << "YES\n";
    int j = 1;
    for (i = 1; i <= 2 * n; i++) {
      if (count) {
        arr[j] = i;
        if (j <= n)
          j = j + n;
        else
          j = j - n;
        count = 0;
      } else {
        arr[j] = i;
        j++;
        count = 1;
      }
    }
    for (i = 1; i <= 2 * n; i++) cout << arr[i] << " ";
    cout << "\n";
  } else
    cout << "NO\n";
}
