#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const long long INFLL = 1e18;
const int MOD = 1e9 + 7;
const int MAXN = 2e5 + 5;
int n;
int main() {
  scanf("%d", &n);
  vector<int> ans;
  if (n % 2 == 0) {
    printf("NO\n");
    return 0;
  }
  printf("YES\n");
  for (int i = 1; i < 2 * n; i += 2) {
    if ((i / 2) & 1) {
      printf("%d ", i + 1);
      ans.push_back(i);
    } else {
      printf("%d ", i);
      ans.push_back(i + 1);
    }
  }
  for (long long i = 0; i < n; i++) {
    printf("%d", ans[i]);
    if (i == n - 1)
      printf("\n");
    else
      printf(" ");
  }
  return 0;
}
