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