#include <bits/stdc++.h>
using namespace std;
int a[300005];
int main() {
  std::ios::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  int f = 1, x = 1;
  for (int i = 1; i <= n; i++) {
    if (f) {
      a[i] = x;
      a[i + n] = x + 1;
      x += 3;
      f = 0;
    } else {
      a[i] = x;
      a[i + n] = x - 1;
      x++;
      f = 1;
    }
  }
  set<long long> s;
  long long sum = 0;
  for (int i = 1; i <= n; i++) sum += a[i];
  for (int i = 2 * n + 1; i <= 2 * n + n; i++) a[i] = a[i - 2 * n];
  s.insert(sum);
  for (int i = 2; i <= 2 * n; i++) {
    sum -= a[i - 1];
    sum += a[i + n - 1];
    s.insert(sum);
  }
  if (s.size() <= 2) {
    auto it = s.begin();
    long long xx = *it;
    it++;
    long long yy = *it;
    if (abs(xx - yy) <= 1) {
      cout << "YES" << endl;
      for (int i = 1; i <= 2 * n; i++) cout << a[i] << ' ';
      return 0;
    }
  }
  cout << "NO";
}
