#include <bits/stdc++.h>
using namespace std;
const long long MAXN = 2000 * 100 + 10;
long long ans[MAXN];
int32_t main() {
  long long n;
  cin >> n;
  if (!(n % 2)) {
    cout << "NO" << endl;
    return 0;
  }
  cout << "YES" << endl;
  ans[1] = 1;
  long long m = 1;
  ;
  for (long long i = 2; i <= n; i += 2) {
    ans[i] = (i / 2) * 4;
    ans[i + 1] = ans[i] + 1;
  }
  for (long long i = n + 1; i <= 2 * n; i += 2) {
    ans[i] = (i - n) * 2;
    ans[i + 1] = ans[i] + 1;
  }
  for (long long i = 1; i <= 2 * n; i++) cout << ans[i] << " ";
  cout << endl;
  return 0;
}
