#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int n;
  cin >> n;
  if (n & 1) {
    cout << "YES" << '\n';
    vector<int> ans(2 * n);
    int cur = 1;
    bool low = true;
    for (int i = 0; i < (int)n; ++i) {
      if (low) {
        ans[i] = cur;
        ans[i + n] = cur + 1;
      } else {
        ans[i] = cur + 1;
        ans[i + n] = cur;
      }
      cur += 2;
      low = !low;
    }
    for (int i = 0; i < (int)2 * n; ++i) {
      cout << ans[i] << ' ';
    }
    cout << '\n';
  } else {
    cout << "NO" << '\n';
  }
}
