#include <bits/stdc++.h>
using namespace std;
void swap(int a[], int x, int y) {
  int c = a[x];
  a[x] = a[y];
  a[y] = c;
}
int main() {
  int n;
  cin >> n;
  if (n % 2 == 0) {
    cout << "NO" << endl;
  } else {
    n = 2 * n;
    int a[n];
    int temp = 1;
    for (int i = 0; i < n / 2; i++) {
      a[i] = temp++;
      a[n / 2 + i] = temp++;
      if (i % 2 == 1) swap(a, i, n / 2 + i);
    }
    cout << "YES" << endl;
    for (int i = 0; i < n; i++) {
      cout << a[i] << " " << endl;
    }
  }
}
