#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long n;
  cin >> n;
  if (n % 2 == 0) {
    cout << "NO" << endl;
    return 0;
  }
  if (n == 1) {
    cout << "YES" << endl;
    cout << 1 << ' ' << 2 << endl;
    return 0;
  }
  vector<long long> v, ans;
  v.push_back(1);
  v.push_back(4);
  bool flag = true;
  while (v.size() < n) {
    if (abs(v[v.size() - 1] - v[v.size() - 2]) == 3)
      v.push_back(v.back() + 1);
    else {
      v.push_back(v.back() + 3);
    }
  }
  v.push_back(2);
  v.push_back(3);
  while (v.size() < 2 * n) {
    if (abs(v[v.size() - 1] - v[v.size() - 2]) == 3)
      v.push_back(v.back() + 1);
    else {
      v.push_back(v.back() + 3);
    }
  }
  cout << "YES" << endl;
  for (auto i : v) cout << i << ' ';
  return 0;
}
