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