#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long n;
  cin >> n;
  if ((2 * n * (2 * n + 1) / 2) % 2 == 0) {
    cout << "NO\n";
    exit(0);
  }
  long long l = 1, r = n + 1;
  vector<long long> a(2 * n + 1);
  for (long long i = 1; i <= n; i++) {
    if (i & 1) {
      a[r++] = 2 * i;
      a[l++] = 2 * i - 1;
    } else {
      a[l++] = 2 * i;
      a[r++] = 2 * i - 1;
    }
  }
  cout << "YES\n";
  for (long long i = 1; i <= 2 * n; i++) {
    cout << a[i] << ' ';
  }
  cout << '\n';
}
