#include <bits/stdc++.h>
using namespace std;
long long n;
long long a[800010], b[800010];
int main() {
  cin >> n;
  for (long long i = 1; i <= 2 * n; ++i) {
    if (i % 4 == 1) a[(i + 1) / 2] = i;
    if (i % 4 == 2) a[n + (i + 1) / 2] = i;
    if (i % 4 == 3) a[n + (i + 1) / 2] = i;
    if (i % 4 == 0) a[(i + 1) / 2] = i;
  }
  for (long long i = 1; i <= 2 * n; ++i) a[i + 2 * n] = a[i];
  for (long long i = 1; i <= n; ++i) b[i] += a[i];
  for (long long i = 2; i <= 2 * n; ++i)
    b[i] = b[i - 1] - a[i - 1] + a[i + n - 1];
  sort(b + 1, b + 2 * n + 1);
  if (b[2 * n] - b[1] > 1) {
    cout << "NO" << endl;
    return 0;
  }
  cout << "YES" << endl;
  for (long long i = 1; i <= n * 2; ++i) cout << a[i] << " ";
  return 0;
}
