#include <bits/stdc++.h>
long long int const MOD = 1000000007;
long long int const N = 1000005;
long long int const LN = 20;
long long int const inf = 8e18;
using namespace std;
long long int n, m, a[N];
vector<long long int> v[2];
vector<long long int> ans;
set<long long int> st;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  long long int n;
  cin >> n;
  long long int f1 = 0;
  long long int f2 = 1;
  long long int curr = 1;
  for (long long int i = 1; i <= n; i++) {
    v[f1].push_back(curr);
    curr++;
    v[f2].push_back(curr);
    curr++;
    swap(f1, f2);
  }
  for (auto w : v[0]) ans.push_back(w);
  for (auto w : v[1]) ans.push_back(w);
  long long int now = 1;
  for (auto w : ans) {
    a[now] = w;
    now++;
  }
  for (auto w : ans) {
    a[now] = w;
    now++;
  }
  for (long long int i = 1; i <= 4 * n; i++) a[i] += a[i - 1];
  long long int p = a[n];
  for (long long int i = n + 1; i <= 4 * n; i++) st.insert(a[i] - a[i - n]);
  if (st.size() > 2) {
    cout << "NO";
    return 0;
  }
  if (st.size() == 2) {
    auto w = *st.begin();
    auto w1 = *(--st.end());
    if (abs(w1 - w) > 1) {
      cout << "NO";
      return 0;
    }
  }
  cout << "YES\n";
  for (auto w : ans) cout << w << " ";
  return 0;
}
