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