#include <bits/stdc++.h>
using namespace std;
using ll = long long;
constexpr ll mod = 1e9 + 7;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  ll n;
  cin >> n;
  if (n % 2 == 0) {
    cout << "NO" << '\n';
    return 0;
  }
  vector<int> ans(2 * n);
  int l = 1, r = 2 * n;
  ans[0] = l;
  ans[n] = l + 1;
  l += 2;
  for (int i = 1; i < n; i += 2) {
    ans[i] = r;
    ans[i + n] = r - 1;
    r -= 2;
    ans[i + 1] = l;
    ans[i + 1 + n] = l + 1;
    l += 2;
  }
  cout << "YES" << '\n';
  for (auto& x : ans) cout << x << " ";
  cout << '\n';
}
