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