#include <bits/stdc++.h>
using namespace std;
int n, k, m, t;
int num1, num2, num3;
long long n1, n2;
int a[200500];
int main() {
  cin >> n;
  if (n % 2 == 0) {
    puts("NO");
    return 0;
  }
  if (n == 1) {
    puts("YES");
    puts("1 2");
    return 0;
  }
  puts("YES");
  a[1] = 1;
  for (int i = 1; i <= n; i++) {
    if (i % 2 == 1) {
      a[i + n] = a[i] + 1;
      a[i + n + 1] = a[i] + 2;
    } else {
      a[i] = a[i + n] + 1;
      a[i + 1] = a[i + n] + 2;
    }
  }
  for (int i = 1; i <= n * 2; i++) cout << a[i] << ' ';
  cout << endl;
}
