#include <bits/stdc++.h>
using namespace std;
int n, a[500005];
int main() {
  cin >> n;
  if (n & 1)
    puts("YES");
  else {
    puts("NO");
    return 0;
  }
  for (int i = 1; i <= n; ++i) {
    a[i] = 2 * i - 1, a[i + n] = 2 * i;
    if (!(i & 1)) swap(a[i], a[i + n]);
  }
  for (int i = 1; i <= n * 2; ++i) {
    printf("%d ", a[i]);
  }
  return 0;
}
