#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3ffffff;
const long long LL_INF = 0x3fffffffffffffffll;
const int MOD = 1e9 + 7;
const long long HASH_KEY = 6151;
const long long HASH_MOD = 1610612741;
const int MAXN = 1e5 + 6;
int a[MAXN * 2];
int main(int argc, char *argv[]) {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cout << fixed << setprecision(10);
  int n;
  cin >> n;
  if (n & 1) {
    cout << "YES\n";
    for (int i = int(0); i < int(n); ++i)
      a[i] = 2 * i + 1, a[i + n] = 2 * i + 2;
    for (int i = 1; i < n; i += 2) swap(a[i], a[i + n]);
    for (int i = int(0); i < int(2 * n); ++i) cout << a[i] << ' ';
    cout << '\n';
  } else {
    cout << "NO\n";
  }
  return 0;
}
