#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, i;
  cin >> n;
  if (n % 2 == 0) return cout << "NO", 0;
  int a[2 * n];
  a[0] = 1;
  a[2 * n - 1] = 2 * n;
  int x = 1;
  int e = 4;
  for (i = 0; i < n / 2; i++) {
    a[x++] = e++;
    a[x++] = e;
    e = e + 3;
  }
  x = n;
  e = 2;
  for (i = 0; i < n / 2; i++) {
    a[x++] = e++;
    a[x++] = e;
    e = e + 3;
  }
  cout << "YES\n";
  for (i = 0; i < 2 * n; i++) cout << a[i] << " ";
  return 0;
}
