#include <bits/stdc++.h>
using namespace std;
const int N = 200100;
int ans[N];
int main() {
  int n;
  scanf("%d", &n);
  if (!(n & 1)) {
    printf("NO");
    return 0;
  }
  for (int i = 1; i <= n; ++i)
    if (i & 1)
      ans[i] = 2 * i - 1, ans[i + n] = 2 * i;
    else
      ans[i] = 2 * i, ans[i + n] = 2 * i - 1;
  printf("YES\n");
  for (int i = 1; i <= 2 * n; ++i) printf("%d ", ans[i]);
  return 0;
}
