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