#include <bits/stdc++.h>
using namespace std;
bool SortbySecDesc(const pair<long long, long long> &a,
                   const pair<long long, long long> &b) {
  return a.second > b.second;
}
bool sortinrev(const pair<int, int> &a, const pair<int, int> &b) {
  return (a.first > b.first);
}
void solve() {
  int n;
  cin >> n;
  if (n % 2 == 0)
    cout << "NO\n";
  else {
    int a[2 * n];
    int fir = 0, sec = n, current = 1;
    for (int i = 0; i < n; i++) {
      if (i % 2 == 0) {
        a[fir] = current++;
        a[sec] = current++;
      } else {
        a[sec] = current++;
        a[fir] = current++;
      }
      fir++;
      sec++;
    }
    cout << "YES\n";
    for (int i = 0; i < 2 * n; i++) cout << a[i] << ' ';
  }
}
int tc = 1;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(nullptr);
  ;
  while (tc--) {
    solve();
  }
  return 0;
}
