#include <bits/stdc++.h>
using namespace std;
long long a[200100];
int main() {
  ios::sync_with_stdio(false);
  long long n;
  cin >> n;
  long long en = 2 * n;
  long long st = 1;
  if (n % 2 == 0) {
    cout << "NO" << endl;
    return 0;
  }
  for (int i = 0; i < n; i++) {
    if (i % 2 == 0) {
      a[i] = st;
      a[i + n] = st + 1;
      st += 2;
    } else {
      a[i] = en;
      a[i + n] = en - 1;
      en -= 2;
    }
  }
  cout << "YES" << endl;
  for (int i = 0; i < 2 * n; i++) {
    cout << a[i] << " ";
  }
  cout << endl;
  return 0;
}
