#include <bits/stdc++.h>
using namespace std;
void boost() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
int main() {
  boost();
  long long n, i, a[200021], j, k = 0, t1 = 1, t2 = 2;
  cin >> n;
  if (n % 2 == 0)
    cout << "NO";
  else {
    cout << "YES" << endl;
    for (i = 1; i <= n; i++) {
      if (i % 2 == 1) {
        a[i] = t1;
        a[i + n] = a[i] + 1;
        t1 += 2;
        t2 += 2;
      }
      if (i % 2 == 0) {
        a[i] = t2;
        a[i + n] = a[i] - 1;
        t1 += 2;
        t2 += 2;
      }
    }
    for (i = 1; i <= n * 2; i++) cout << a[i] << " ";
  }
  return 0;
}
