#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  if (!(n & 1)) {
    puts("NO");
    return 0;
  }
  int arr[2 * n];
  int i = 0, j = n;
  set<int> st;
  bool role = true;
  int c = 1;
  while (j < 2 * n) {
    if (role) {
      arr[i] = c;
      arr[j] = c + 1;
    } else {
      arr[i] = c + 1;
      arr[j] = c;
    }
    role = !role;
    c += 2;
    i++, j++;
  }
  puts("YES");
  for (int a = 0; a < 2 * n; a++) printf("%d ", arr[a]);
  puts("");
  return 0;
}
