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